| java.lang.Object persistence.antlr.CharScanner persistence.antlr.actions.java.ActionLexer
ActionLexer | public class ActionLexer extends persistence.antlr.CharScanner implements ActionLexerTokenTypes,TokenStream(Code) | | Perform the following translations:
AST related translations
## -> currentRule_AST
#(x,y,z) -> codeGenerator.getASTCreateString(vector-of(x,y,z))
#[x] -> codeGenerator.getASTCreateString(x)
#x -> codeGenerator.mapTreeId(x)
Inside context of #(...), you can ref (x,y,z), [x], and x as shortcuts.
Text related translations
$append(x) -> text.append(x)
$setText(x) -> text.setLength(_begin); text.append(x)
$getText -> new String(text.getBuffer(),_begin,text.length()-_begin)
$setToken(x) -> _token = x
$setType(x) -> _ttype = x
$FOLLOW(r) -> FOLLOW set name for rule r (optional arg)
$FIRST(r) -> FIRST set name for rule r (optional arg)
|
lineOffset | protected int lineOffset(Code) | | |
setLineOffset | public void setLineOffset(int lineOffset)(Code) | | |
|
|