Пример #1
0
 internal short no_entry(short nonterminal, short token, int level)
 {
     mHasError = true;
     LogUtil.Error(" syntax error: skipping input {0}, last token {1} line {2}, cur token {3} line {4}", DslString.GetSymbolName(token), tokens.getLastToken(), tokens.getLastLineNumber(), tokens.getCurToken(), tokens.getLineNumber());
     token = tokens.get(); // advance the input
     return(token);
 }
Пример #2
0
 internal short mismatch(short terminal, short token)
 {
     mHasError = true;
     LogUtil.Error(" expecting {0} but found {1}, last token {2} line {3}, cur token {4} line {5}", DslString.GetSymbolName(terminal), DslString.GetSymbolName(token), tokens.getLastToken(), tokens.getLastLineNumber(), tokens.getCurToken(), tokens.getLineNumber());
     return(token);
 }