/** For a non-lexer, just build a simple token reference atom. */ @Override public Handle stringLiteral(TerminalAST stringLiteralAST) { return tokenRef(stringLiteralAST); }
/** For a non-lexer, just build a simple token reference atom. */ @Override public Handle stringLiteral(TerminalAST stringLiteralAST) { return tokenRef(stringLiteralAST); }
/** For a non-lexer, just build a simple token reference atom. */ @Override public Handle stringLiteral(TerminalAST stringLiteralAST) { return tokenRef(stringLiteralAST); }
/** For a non-lexer, just build a simple token reference atom. */ @Override public Handle stringLiteral(TerminalAST stringLiteralAST) { return tokenRef(stringLiteralAST); }
/** For a non-lexer, just build a simple token reference atom. */ @NotNull @Override public Handle stringLiteral(@NotNull TerminalAST stringLiteralAST) { return tokenRef(stringLiteralAST); }
/** Not valid for non-lexers. */ @Override public Handle range(GrammarAST a, GrammarAST b) { g.tool.errMgr.grammarError(ErrorType.TOKEN_RANGE_IN_PARSER, g.fileName, a.getToken(), a.getToken().getText(), b.getToken().getText()); // From a..b, yield ATN for just a. return tokenRef((TerminalAST)a); }
/** Not valid for non-lexers. */ @Override public Handle range(GrammarAST a, GrammarAST b) { g.tool.errMgr.grammarError(ErrorType.TOKEN_RANGE_IN_PARSER, g.fileName, a.getToken(), a.getToken().getText(), b.getToken().getText()); // From a..b, yield ATN for just a. return tokenRef((TerminalAST)a); }
/** Not valid for non-lexers. */ @NotNull @Override public Handle range(@NotNull GrammarAST a, @NotNull GrammarAST b) { g.tool.errMgr.grammarError(ErrorType.TOKEN_RANGE_IN_PARSER, g.fileName, a.getToken(), a.getToken().getText(), b.getToken().getText()); // From a..b, yield ATN for just a. return tokenRef((TerminalAST)a); }