Example #1
0
 public SyntaxException(IEnumerable <string> expecteds, TokenQueue q)
     : base($"Syntax error at \"{q.GetSnippet()}\".  Expected: {string.Join(", ", expecteds)}")
 {
 }
Example #2
0
 public SyntaxException(TokenQueue q) : base($"Syntax error at \"{q.GetSnippet()}\"")
 {
 }