antlr.actions.cpp
Class ActionLexer

java.lang.Object
  |
  +--antlr.CharScanner
        |
        +--antlr.actions.cpp.ActionLexer
All Implemented Interfaces:
ActionLexerTokenTypes, TokenStream

public class ActionLexer
extends CharScanner
implements ActionLexerTokenTypes, TokenStream

Untamed: 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


Field Summary
static BitSet _tokenSet_0
          Enabled:
private static long[] _tokenSet_0_data_
           
static BitSet _tokenSet_1
          Enabled:
private static long[] _tokenSet_1_data_
           
static BitSet _tokenSet_10
          Enabled:
private static long[] _tokenSet_10_data_
           
static BitSet _tokenSet_11
          Enabled:
private static long[] _tokenSet_11_data_
           
static BitSet _tokenSet_12
          Enabled:
private static long[] _tokenSet_12_data_
           
static BitSet _tokenSet_13
          Enabled:
private static long[] _tokenSet_13_data_
           
static BitSet _tokenSet_14
          Enabled:
private static long[] _tokenSet_14_data_
           
static BitSet _tokenSet_15
          Enabled:
private static long[] _tokenSet_15_data_
           
static BitSet _tokenSet_16
          Enabled:
private static long[] _tokenSet_16_data_
           
static BitSet _tokenSet_17
          Enabled:
private static long[] _tokenSet_17_data_
           
static BitSet _tokenSet_18
          Enabled:
private static long[] _tokenSet_18_data_
           
static BitSet _tokenSet_19
          Enabled:
private static long[] _tokenSet_19_data_
           
static BitSet _tokenSet_2
          Enabled:
private static long[] _tokenSet_2_data_
           
static BitSet _tokenSet_20
          Enabled:
private static long[] _tokenSet_20_data_
           
static BitSet _tokenSet_3
          Enabled:
private static long[] _tokenSet_3_data_
           
static BitSet _tokenSet_4
          Enabled:
private static long[] _tokenSet_4_data_
           
static BitSet _tokenSet_5
          Enabled:
private static long[] _tokenSet_5_data_
           
static BitSet _tokenSet_6
          Enabled:
private static long[] _tokenSet_6_data_
           
static BitSet _tokenSet_7
          Enabled:
private static long[] _tokenSet_7_data_
           
static BitSet _tokenSet_8
          Enabled:
private static long[] _tokenSet_8_data_
           
static BitSet _tokenSet_9
          Enabled:
private static long[] _tokenSet_9_data_
           
protected  RuleBlock currentRule
           
protected  CodeGenerator generator
           
protected  int lineOffset
           
private  Tool tool
           
(package private)  ActionTransInfo transInfo
           
 
Fields inherited from class antlr.CharScanner
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, text, tokenObjectClass, traceDepth
 
Fields inherited from interface antlr.actions.cpp.ActionLexerTokenTypes
ACTION, ARG, AST_CONSTRUCTOR, AST_CTOR_ELEMENT, AST_ITEM, CHAR, COMMENT, DIGIT, EOF, ESC, ID, ID_ELEMENT, INT, INT_OR_FLOAT, ML_COMMENT, NULL_TREE_LOOKAHEAD, SL_COMMENT, STRING, STUFF, TEXT_ARG, TEXT_ARG_ELEMENT, TEXT_ARG_ID_ELEMENT, TEXT_ITEM, TREE, TREE_ELEMENT, VAR_ASSIGN, WS
 
Constructor Summary
ActionLexer(InputBuffer ib)
          Enabled:
ActionLexer(InputStream in)
          Enabled:
ActionLexer(LexerSharedInputState state)
          Enabled:
ActionLexer(Reader in)
          Enabled:
ActionLexer(String s, RuleBlock currentRule, CodeGenerator generator, ActionTransInfo transInfo)
          Enabled:
 
Method Summary
 void mACTION(boolean _createToken)
          Enabled:
protected  void mARG(boolean _createToken)
           
protected  void mAST_CONSTRUCTOR(boolean _createToken)
           
protected  void mAST_CTOR_ELEMENT(boolean _createToken)
          The arguments of a #[...] constructor are text, token type, or a tree.
protected  void mAST_ITEM(boolean _createToken)
           
protected  void mCHAR(boolean _createToken)
           
protected  void mCOMMENT(boolean _createToken)
           
protected  void mDIGIT(boolean _createToken)
           
protected  void mESC(boolean _createToken)
           
protected  boolean mID_ELEMENT(boolean _createToken)
          An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.
protected  void mID(boolean _createToken)
           
protected  void mINT_OR_FLOAT(boolean _createToken)
           
protected  void mINT(boolean _createToken)
           
protected  void mML_COMMENT(boolean _createToken)
           
protected  void mSL_COMMENT(boolean _createToken)
           
protected  void mSTRING(boolean _createToken)
           
protected  void mSTUFF(boolean _createToken)
           
protected  void mTEXT_ARG_ELEMENT(boolean _createToken)
           
protected  void mTEXT_ARG_ID_ELEMENT(boolean _createToken)
           
protected  void mTEXT_ARG(boolean _createToken)
           
protected  void mTEXT_ITEM(boolean _createToken)
           
protected  void mTREE_ELEMENT(boolean _createToken)
           
protected  void mTREE(boolean _createToken)
           
protected  void mVAR_ASSIGN(boolean _createToken)
           
protected  void mWS(boolean _createToken)
           
 Token nextToken()
          Enabled:
 void reportError(RecognitionException e)
          Enabled:
 void setLineOffset(int lineOffset)
          Enabled:
 void setTool(Tool tool)
          Enabled:
 
Methods inherited from class antlr.CharScanner
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentRule

protected RuleBlock currentRule

generator

protected CodeGenerator generator

lineOffset

protected int lineOffset

tool

private Tool tool

transInfo

ActionTransInfo transInfo

_tokenSet_0_data_

private static final long[] _tokenSet_0_data_

_tokenSet_0

public static final BitSet _tokenSet_0
Enabled:


_tokenSet_1_data_

private static final long[] _tokenSet_1_data_

_tokenSet_1

public static final BitSet _tokenSet_1
Enabled:


_tokenSet_2_data_

private static final long[] _tokenSet_2_data_

_tokenSet_2

public static final BitSet _tokenSet_2
Enabled:


_tokenSet_3_data_

private static final long[] _tokenSet_3_data_

_tokenSet_3

public static final BitSet _tokenSet_3
Enabled:


_tokenSet_4_data_

private static final long[] _tokenSet_4_data_

_tokenSet_4

public static final BitSet _tokenSet_4
Enabled:


_tokenSet_5_data_

private static final long[] _tokenSet_5_data_

_tokenSet_5

public static final BitSet _tokenSet_5
Enabled:


_tokenSet_6_data_

private static final long[] _tokenSet_6_data_

_tokenSet_6

public static final BitSet _tokenSet_6
Enabled:


_tokenSet_7_data_

private static final long[] _tokenSet_7_data_

_tokenSet_7

public static final BitSet _tokenSet_7
Enabled:


_tokenSet_8_data_

private static final long[] _tokenSet_8_data_

_tokenSet_8

public static final BitSet _tokenSet_8
Enabled:


_tokenSet_9_data_

private static final long[] _tokenSet_9_data_

_tokenSet_9

public static final BitSet _tokenSet_9
Enabled:


_tokenSet_10_data_

private static final long[] _tokenSet_10_data_

_tokenSet_10

public static final BitSet _tokenSet_10
Enabled:


_tokenSet_11_data_

private static final long[] _tokenSet_11_data_

_tokenSet_11

public static final BitSet _tokenSet_11
Enabled:


_tokenSet_12_data_

private static final long[] _tokenSet_12_data_

_tokenSet_12

public static final BitSet _tokenSet_12
Enabled:


_tokenSet_13_data_

private static final long[] _tokenSet_13_data_

_tokenSet_13

public static final BitSet _tokenSet_13
Enabled:


_tokenSet_14_data_

private static final long[] _tokenSet_14_data_

_tokenSet_14

public static final BitSet _tokenSet_14
Enabled:


_tokenSet_15_data_

private static final long[] _tokenSet_15_data_

_tokenSet_15

public static final BitSet _tokenSet_15
Enabled:


_tokenSet_16_data_

private static final long[] _tokenSet_16_data_

_tokenSet_16

public static final BitSet _tokenSet_16
Enabled:


_tokenSet_17_data_

private static final long[] _tokenSet_17_data_

_tokenSet_17

public static final BitSet _tokenSet_17
Enabled:


_tokenSet_18_data_

private static final long[] _tokenSet_18_data_

_tokenSet_18

public static final BitSet _tokenSet_18
Enabled:


_tokenSet_19_data_

private static final long[] _tokenSet_19_data_

_tokenSet_19

public static final BitSet _tokenSet_19
Enabled:


_tokenSet_20_data_

private static final long[] _tokenSet_20_data_

_tokenSet_20

public static final BitSet _tokenSet_20
Enabled:

Constructor Detail

ActionLexer

public ActionLexer(String s,
                   RuleBlock currentRule,
                   CodeGenerator generator,
                   ActionTransInfo transInfo)
Enabled:


ActionLexer

public ActionLexer(InputStream in)
Enabled:


ActionLexer

public ActionLexer(Reader in)
Enabled:


ActionLexer

public ActionLexer(InputBuffer ib)
Enabled:


ActionLexer

public ActionLexer(LexerSharedInputState state)
Enabled:

Method Detail

setLineOffset

public void setLineOffset(int lineOffset)
Enabled:


setTool

public void setTool(Tool tool)
Enabled:


reportError

public void reportError(RecognitionException e)
Enabled:

Overrides:
reportError in class CharScanner

nextToken

public Token nextToken()
                throws TokenStreamException
Enabled:

Specified by:
nextToken in interface TokenStream
TokenStreamException

mACTION

public final void mACTION(boolean _createToken)
                   throws RecognitionException,
                          CharStreamException,
                          TokenStreamException
Enabled:

RecognitionException
CharStreamException
TokenStreamException

mSTUFF

protected final void mSTUFF(boolean _createToken)
                     throws RecognitionException,
                            CharStreamException,
                            TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mAST_ITEM

protected final void mAST_ITEM(boolean _createToken)
                        throws RecognitionException,
                               CharStreamException,
                               TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mTEXT_ITEM

protected final void mTEXT_ITEM(boolean _createToken)
                         throws RecognitionException,
                                CharStreamException,
                                TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mCOMMENT

protected final void mCOMMENT(boolean _createToken)
                       throws RecognitionException,
                              CharStreamException,
                              TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mSTRING

protected final void mSTRING(boolean _createToken)
                      throws RecognitionException,
                             CharStreamException,
                             TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mCHAR

protected final void mCHAR(boolean _createToken)
                    throws RecognitionException,
                           CharStreamException,
                           TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mTREE

protected final void mTREE(boolean _createToken)
                    throws RecognitionException,
                           CharStreamException,
                           TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mID

protected final void mID(boolean _createToken)
                  throws RecognitionException,
                         CharStreamException,
                         TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mWS

protected final void mWS(boolean _createToken)
                  throws RecognitionException,
                         CharStreamException,
                         TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mVAR_ASSIGN

protected final void mVAR_ASSIGN(boolean _createToken)
                          throws RecognitionException,
                                 CharStreamException,
                                 TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mAST_CONSTRUCTOR

protected final void mAST_CONSTRUCTOR(boolean _createToken)
                               throws RecognitionException,
                                      CharStreamException,
                                      TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mTEXT_ARG

protected final void mTEXT_ARG(boolean _createToken)
                        throws RecognitionException,
                               CharStreamException,
                               TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mTREE_ELEMENT

protected final void mTREE_ELEMENT(boolean _createToken)
                            throws RecognitionException,
                                   CharStreamException,
                                   TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mID_ELEMENT

protected final boolean mID_ELEMENT(boolean _createToken)
                             throws RecognitionException,
                                    CharStreamException,
                                    TokenStreamException
An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.

RecognitionException
CharStreamException
TokenStreamException

mAST_CTOR_ELEMENT

protected final void mAST_CTOR_ELEMENT(boolean _createToken)
                                throws RecognitionException,
                                       CharStreamException,
                                       TokenStreamException
The arguments of a #[...] constructor are text, token type, or a tree.

RecognitionException
CharStreamException
TokenStreamException

mINT

protected final void mINT(boolean _createToken)
                   throws RecognitionException,
                          CharStreamException,
                          TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mARG

protected final void mARG(boolean _createToken)
                   throws RecognitionException,
                          CharStreamException,
                          TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mTEXT_ARG_ELEMENT

protected final void mTEXT_ARG_ELEMENT(boolean _createToken)
                                throws RecognitionException,
                                       CharStreamException,
                                       TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mTEXT_ARG_ID_ELEMENT

protected final void mTEXT_ARG_ID_ELEMENT(boolean _createToken)
                                   throws RecognitionException,
                                          CharStreamException,
                                          TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mINT_OR_FLOAT

protected final void mINT_OR_FLOAT(boolean _createToken)
                            throws RecognitionException,
                                   CharStreamException,
                                   TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mSL_COMMENT

protected final void mSL_COMMENT(boolean _createToken)
                          throws RecognitionException,
                                 CharStreamException,
                                 TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mML_COMMENT

protected final void mML_COMMENT(boolean _createToken)
                          throws RecognitionException,
                                 CharStreamException,
                                 TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mESC

protected final void mESC(boolean _createToken)
                   throws RecognitionException,
                          CharStreamException,
                          TokenStreamException
RecognitionException
CharStreamException
TokenStreamException

mDIGIT

protected final void mDIGIT(boolean _createToken)
                     throws RecognitionException,
                            CharStreamException,
                            TokenStreamException
RecognitionException
CharStreamException
TokenStreamException


comments?