Пример #1
0
 public static void ParserError(Lexer lex, string msg)
 {
     OutputError(lex.LookAheadToken.CodeLineNumber + ":" + lex.LookAheadToken.CodeColumnNumber + " > " + msg);
 }
Пример #2
0
 public static void LexerError(Lexer lex, string msg)
 {
     OutputError(lex.CurrentLineNumber + ":" + lex.CurrentColumnNumber + " > " + msg);
 }
Пример #3
0
 public static void MissingRequiredKeywordError(Lexer lex, Token.Types keyword)
 {
     ParserError(lex, "Keyword '" + keyword.ToString() + "' required.");
 }
Пример #4
0
 public static void IdentifierExpected(Lexer lex)
 {
     ParserError(lex, "Identifier expected.");
 }