Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Package Attributes

antlr.actions.csharp.ActionLexer Class Reference

Inheritance diagram for antlr.actions.csharp.ActionLexer:
antlr.CharScanner antlr.actions.csharp.ActionLexerTokenTypes antlr.TokenStream antlr.TokenStream

List of all members.

Public Member Functions

 ActionLexer (String s, RuleBlock currentRule, CodeGenerator generator, ActionTransInfo transInfo)
void setLineOffset (int lineOffset)
void setTool (Tool tool)
void reportError (RecognitionException e)
void reportError (String s)
void reportWarning (String s)
 ActionLexer (InputStream in)
 ActionLexer (Reader in)
 ActionLexer (InputBuffer ib)
 ActionLexer (LexerSharedInputState state)
Token nextToken () throws TokenStreamException
final void mACTION (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException

Static Public Attributes

static final BitSet _tokenSet_0 = new BitSet(mk_tokenSet_0())
static final BitSet _tokenSet_1 = new BitSet(mk_tokenSet_1())
static final BitSet _tokenSet_2 = new BitSet(mk_tokenSet_2())
static final BitSet _tokenSet_3 = new BitSet(mk_tokenSet_3())
static final BitSet _tokenSet_4 = new BitSet(mk_tokenSet_4())
static final BitSet _tokenSet_5 = new BitSet(mk_tokenSet_5())
static final BitSet _tokenSet_6 = new BitSet(mk_tokenSet_6())
static final BitSet _tokenSet_7 = new BitSet(mk_tokenSet_7())
static final BitSet _tokenSet_8 = new BitSet(mk_tokenSet_8())
static final BitSet _tokenSet_9 = new BitSet(mk_tokenSet_9())
static final BitSet _tokenSet_10 = new BitSet(mk_tokenSet_10())
static final BitSet _tokenSet_11 = new BitSet(mk_tokenSet_11())
static final BitSet _tokenSet_12 = new BitSet(mk_tokenSet_12())
static final BitSet _tokenSet_13 = new BitSet(mk_tokenSet_13())
static final BitSet _tokenSet_14 = new BitSet(mk_tokenSet_14())
static final BitSet _tokenSet_15 = new BitSet(mk_tokenSet_15())
static final BitSet _tokenSet_16 = new BitSet(mk_tokenSet_16())
static final BitSet _tokenSet_17 = new BitSet(mk_tokenSet_17())
static final BitSet _tokenSet_18 = new BitSet(mk_tokenSet_18())
static final BitSet _tokenSet_19 = new BitSet(mk_tokenSet_19())
static final BitSet _tokenSet_20 = new BitSet(mk_tokenSet_20())
static final BitSet _tokenSet_21 = new BitSet(mk_tokenSet_21())
static final BitSet _tokenSet_22 = new BitSet(mk_tokenSet_22())
static final BitSet _tokenSet_23 = new BitSet(mk_tokenSet_23())
static final BitSet _tokenSet_24 = new BitSet(mk_tokenSet_24())
static final BitSet _tokenSet_25 = new BitSet(mk_tokenSet_25())
static final BitSet _tokenSet_26 = new BitSet(mk_tokenSet_26())

Protected Member Functions

final void mSTUFF (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mAST_ITEM (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mTEXT_ITEM (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mCOMMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mSTRING (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mCHAR (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mTREE (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mWS (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mID (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mVAR_ASSIGN (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mAST_CONSTRUCTOR (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mTEXT_ARG (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mTREE_ELEMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final boolean mID_ELEMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mAST_CTOR_ELEMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mINT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mARG (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mTEXT_ARG_ELEMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mTEXT_ARG_ID_ELEMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mINT_OR_FLOAT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mSL_COMMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mML_COMMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mESC (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
final void mDIGIT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException

Protected Attributes

RuleBlock currentRule
CodeGenerator generator
int lineOffset = 0

Package Attributes

ActionTransInfo transInfo

Detailed Description

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)


Constructor & Destructor Documentation

antlr.actions.csharp.ActionLexer.ActionLexer ( String  s,
RuleBlock  currentRule,
CodeGenerator  generator,
ActionTransInfo  transInfo 
)
antlr.actions.csharp.ActionLexer.ActionLexer ( InputStream  in  ) 
antlr.actions.csharp.ActionLexer.ActionLexer ( Reader  in  ) 
antlr.actions.csharp.ActionLexer.ActionLexer ( InputBuffer  ib  ) 
antlr.actions.csharp.ActionLexer.ActionLexer ( LexerSharedInputState  state  ) 

Member Function Documentation

final boolean antlr.actions.csharp.ActionLexer.mID_ELEMENT ( boolean  _createToken  )  throws RecognitionException, CharStreamException, TokenStreamException [protected]
void antlr.actions.csharp.ActionLexer.reportError ( String  s  ) 
void antlr.actions.csharp.ActionLexer.reportWarning ( String  s  ) 
void antlr.actions.csharp.ActionLexer.setLineOffset ( int  lineOffset  ) 
void antlr.actions.csharp.ActionLexer.setTool ( Tool  tool  ) 

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties