예제 #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.");
 }