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); }
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); }
internal override void predict(short production_number) { #if FULL_VERSION ArkCrossEngine.LogSystem.Info("{0}", DslString.GetProductionName(production_number)); #endif }