Example #1
0
 static string FormatMessage(BnfState state, string message)
 {
     if (message.Length == 0)
     {
         return(state.Bnf.FileName + "\r\n\r\n" + state.ToString().Replace("\n", "\r\n\r\n"));
     }
     return(state.Bnf.FileName + "\r\n\r\n" + message + "\r\n\r\n" + state.ToString().Replace("\n", "\r\n\r\n"));
 }
Example #2
0
 public BnfStateException(BnfState state, string message)
     : base(FormatMessage(state, message))
 {
 }