Exemplo n.º 1
0
 public ParseException(Token unexpectedToken)
     : base(string.Format("Unexpected {0}", unexpectedToken))
 {
     this.Token = unexpectedToken;
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public ParseException(Token unexpectedToken, string message)
     : base(string.Format("Unexpected {0}, {1}", unexpectedToken, message))
 {
     this.Token = unexpectedToken;
 }