Beispiel #1
0
 public ParseException(Token unexpectedToken)
     : base(string.Format("Unexpected {0}", unexpectedToken))
 {
     this.Token = unexpectedToken;
 }
Beispiel #2
0
 public ParseException(Token unexpectedToken, params string[] expected)
     : base(string.Format("Unexpected {0}, {1} expected", unexpectedToken, string.Join(" or ", expected.Select(_ => _.ToString()).ToArray())))
 {
     this.Token = unexpectedToken;
     this.Expected = expected;
 }
Beispiel #3
0
 public ParseException(Token unexpectedToken, string message)
     : base(string.Format("Unexpected {0}, {1}", unexpectedToken, message))
 {
     this.Token = unexpectedToken;
 }