Logo Search packages:      
Sourcecode: antlr version File versions

antlr::ANTLRTokdefParser Class Reference

Inheritance diagram for antlr::ANTLRTokdefParser:

antlr::LLkParser

List of all members.


Detailed Description

Simple lexer/parser for reading token definition files in support of the import/export vocab option for grammars.

Definition at line 20 of file ANTLRTokdefParser.java.


Public Member Functions

virtual void addMessageListener (MessageListener l)
void addMessageListener (MessageListener l)
virtual void addParserListener (ParserListener l)
void addParserListener (ParserListener l)
virtual void addParserMatchListener (ParserMatchListener l)
void addParserMatchListener (ParserMatchListener l)
virtual void addParserTokenListener (ParserTokenListener l)
void addParserTokenListener (ParserTokenListener l)
virtual void addSemanticPredicateListener (SemanticPredicateListener l)
void addSemanticPredicateListener (SemanticPredicateListener l)
virtual void addSyntacticPredicateListener (SyntacticPredicateListener l)
void addSyntacticPredicateListener (SyntacticPredicateListener l)
virtual void addTraceListener (TraceListener l)
void addTraceListener (TraceListener l)
 ANTLRTokdefParser (ParserSharedInputState state)
 ANTLRTokdefParser (TokenStream lexer)
 ANTLRTokdefParser (TokenBuffer tokenBuf)
override void consume ()
void consume ()
virtual void consumeUntil (BitSet bset)
virtual void consumeUntil (int tokenType)
void consumeUntil (BitSet set) throws TokenStreamException
void consumeUntil (int tokenType) throws TokenStreamException
final void file (ImportVocabTokenManager tm) throws RecognitionException, TokenStreamException
virtual AST getAST ()
AST getAST ()
virtual ASTFactory getASTFactory ()
ASTFactory getASTFactory ()
virtual string getFilename ()
String getFilename ()
virtual ParserSharedInputState getInputState ()
ParserSharedInputState getInputState ()
virtual string getTokenName (int num)
String getTokenName (int num)
virtual string[] getTokenNames ()
String[] getTokenNames ()
Hashtable getTokenTypeToASTClassMap ()
virtual bool isDebugMode ()
boolean isDebugMode ()
override int LA (int i)
int LA (int i) throws TokenStreamException
final void line (ImportVocabTokenManager tm) throws RecognitionException, TokenStreamException
override Token LT (int i)
Token LT (int i) throws TokenStreamException
virtual int mark ()
int mark ()
virtual void match (BitSet b)
virtual void match (int t)
void match (BitSet b) throws MismatchedTokenException, TokenStreamException
void match (int t) throws MismatchedTokenException, TokenStreamException
virtual void matchNot (int t)
void matchNot (int t) throws MismatchedTokenException, TokenStreamException
virtual void removeMessageListener (MessageListener l)
void removeMessageListener (MessageListener l)
virtual void removeParserListener (ParserListener l)
void removeParserListener (ParserListener l)
virtual void removeParserMatchListener (ParserMatchListener l)
void removeParserMatchListener (ParserMatchListener l)
virtual void removeParserTokenListener (ParserTokenListener l)
void removeParserTokenListener (ParserTokenListener l)
virtual void removeSemanticPredicateListener (SemanticPredicateListener l)
void removeSemanticPredicateListener (SemanticPredicateListener l)
virtual void removeSyntacticPredicateListener (SyntacticPredicateListener l)
void removeSyntacticPredicateListener (SyntacticPredicateListener l)
virtual void removeTraceListener (TraceListener l)
void removeTraceListener (TraceListener l)
virtual void reportError (string s)
void reportError (RecognitionException e)
void reportError (String s)
virtual void reportWarning (string s)
void reportWarning (String s)
virtual void rewind (int pos)
void rewind (int pos)
virtual void setASTFactory (ASTFactory f)
 Specify an object with support code (shared by Parser and TreeParser. Normally, the programmer does not play with this, using setASTNodeClass instead.
void setASTFactory (ASTFactory f)
virtual void setASTNodeClass (string cl)
 Specify the type of node to create during tree building.
void setASTNodeClass (String cl)
virtual void setASTNodeType (string nodeType)
 Specify the type of node to create during tree building. use setASTNodeClass now to be consistent with Token Object Type accessor.
void setASTNodeType (String nodeType)
virtual void setDebugMode (bool debugMode)
void setDebugMode (boolean debugMode)
virtual void setFilename (string f)
void setFilename (String f)
virtual void setIgnoreInvalidDebugCalls (bool Value)
void setIgnoreInvalidDebugCalls (boolean value)
virtual void setInputState (ParserSharedInputState state)
void setInputState (ParserSharedInputState state)
virtual void setTokenBuffer (TokenBuffer t)
void setTokenBuffer (TokenBuffer t)
void setTool (antlr.Tool tool)
override void traceIn (string rname)
void traceIn (String rname) throws TokenStreamException
virtual void traceIndent ()
void traceIndent ()
override void traceOut (string rname)
void traceOut (String rname) throws TokenStreamException

Static Public Member Functions

static void panic ()
static void panic ()

Public Attributes

int ASSIGN = 6
int DIGIT = 14
int ESC = 13
int ID = 4
int INT = 9
int LPAREN = 7
int ML_COMMENT = 12
int NULL_TREE_LOOKAHEAD = 3
int RPAREN = 8
int SL_COMMENT = 11
int STRING = 5
int WS = 10
int XDIGIT = 15

Static Public Attributes

static final String[] _tokenNames
static final BitSet _tokenSet_0 = new BitSet(mk_tokenSet_0())
static final BitSet _tokenSet_1 = new BitSet(mk_tokenSet_1())

Protected Member Functions

 ANTLRTokdefParser (TokenStream lexer, int k)
 ANTLRTokdefParser (TokenBuffer tokenBuf, int k)
virtual internal void defaultDebuggingSetup (TokenStream lexer, TokenBuffer tokBuf)
void defaultDebuggingSetup (TokenStream lexer, TokenBuffer tokBuf)
antlr.Tool getTool ()

Protected Attributes

internal ASTFactory astFactory = new ASTFactory()
ASTFactory astFactory = null
internal ParserSharedInputState inputState
ParserSharedInputState inputState
internal AST returnAST
AST returnAST
internal string[] tokenNames
String[] tokenNames
Hashtable tokenTypeToASTClassMap = null
internal int traceDepth = 0
int traceDepth = 0

Package Attributes

int EOF = 1
int k

Properties

TokenEventHandler ConsumedToken
TraceEventHandler Done
TraceEventHandler EnterRule
MessageEventHandler ErrorReported
internal EventHandlerList Events [get]
TraceEventHandler ExitRule
MatchEventHandler MatchedNotToken
MatchEventHandler MatchedToken
MatchEventHandler MisMatchedNotToken
MatchEventHandler MisMatchedToken
SemanticPredicateEventHandler SemPredEvaluated
SyntacticPredicateEventHandler SynPredFailed
SyntacticPredicateEventHandler SynPredStarted
SyntacticPredicateEventHandler SynPredSucceeded
TokenEventHandler TokenLA
MessageEventHandler WarningReported

Static Private Member Functions

static final long[] mk_tokenSet_0 ()
static final long[] mk_tokenSet_1 ()

Private Attributes

antlr.Tool antlrTool

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index