| java.lang.Object persistence.antlr.CharScanner persistence.antlr.actions.cpp.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)
|
Method Summary | |
final public void | mACTION(boolean _createToken) | final protected void | mARG(boolean _createToken) | final protected void | mAST_CONSTRUCTOR(boolean _createToken) | final protected void | mAST_CTOR_ELEMENT(boolean _createToken) The arguments of a #[...] constructor are text, token type,
or a tree. | final protected void | mAST_ITEM(boolean _createToken) | final protected void | mCHAR(boolean _createToken) | final protected void | mCOMMENT(boolean _createToken) | final protected void | mDIGIT(boolean _createToken) | final protected void | mESC(boolean _createToken) | final protected void | mID(boolean _createToken) | final protected boolean | mID_ELEMENT(boolean _createToken) An ID_ELEMENT can be a func call, array ref, simple var,
or AST label ref. | final protected void | mINT(boolean _createToken) | final protected void | mINT_OR_FLOAT(boolean _createToken) | final protected void | mML_COMMENT(boolean _createToken) | final protected void | mSL_COMMENT(boolean _createToken) | final protected void | mSTRING(boolean _createToken) | final protected void | mSTUFF(boolean _createToken) stuff in between #(...) and #id items
Allow the escaping of the # for C preprocessor stuff. | final protected void | mTEXT_ARG(boolean _createToken) | final protected void | mTEXT_ARG_ELEMENT(boolean _createToken) | final protected void | mTEXT_ARG_ID_ELEMENT(boolean _createToken) | final protected void | mTEXT_ITEM(boolean _createToken) | final protected void | mTREE(boolean _createToken) | final protected void | mTREE_ELEMENT(boolean _createToken) | final protected void | mVAR_ASSIGN(boolean _createToken) | final protected void | mWS(boolean _createToken) | public Token | nextToken() | public void | reportError(RecognitionException e) | public void | reportError(String s) | public void | reportWarning(String s) | public void | setLineOffset(int lineOffset) | public void | setTool(Tool tool) |
lineOffset | protected int lineOffset(Code) | | |
setLineOffset | public void setLineOffset(int lineOffset)(Code) | | |
|
|