Public Member Functions | Protected Member Functions | Protected Attributes

antlr.debug.LLkDebuggingParser Class Reference

Inheritance diagram for antlr.debug.LLkDebuggingParser:
antlr.LLkParser antlr.debug.DebuggingParser antlr.Parser

List of all members.

Public Member Functions

 LLkDebuggingParser (int k_)
 LLkDebuggingParser (ParserSharedInputState state, int k_)
 LLkDebuggingParser (TokenBuffer tokenBuf, int k_)
 LLkDebuggingParser (TokenStream lexer, int k_)
void addMessageListener (MessageListener l)
void addParserListener (ParserListener l)
void addParserMatchListener (ParserMatchListener l)
void addParserTokenListener (ParserTokenListener l)
void addSemanticPredicateListener (SemanticPredicateListener l)
void addSyntacticPredicateListener (SyntacticPredicateListener l)
void addTraceListener (TraceListener l)
void consume () throws TokenStreamException
String getRuleName (int num)
String getSemPredName (int num)
synchronized void goToSleep ()
boolean isDebugMode ()
boolean isGuessing ()
int LA (int i) throws TokenStreamException
void match (int t) throws MismatchedTokenException, TokenStreamException
void match (BitSet b) throws MismatchedTokenException, TokenStreamException
void matchNot (int t) throws MismatchedTokenException, TokenStreamException
void removeMessageListener (MessageListener l)
void removeParserListener (ParserListener l)
void removeParserMatchListener (ParserMatchListener l)
void removeParserTokenListener (ParserTokenListener l)
void removeSemanticPredicateListener (SemanticPredicateListener l)
void removeSyntacticPredicateListener (SyntacticPredicateListener l)
void removeTraceListener (TraceListener l)
void reportError (RecognitionException ex)
void reportError (String s)
void reportWarning (String s)
void setDebugMode (boolean value)
void setupDebugging (TokenBuffer tokenBuf)
void setupDebugging (TokenStream lexer)
synchronized void wakeUp ()

Protected Member Functions

void fireEnterRule (int num, int data)
void fireExitRule (int num, int data)
boolean fireSemanticPredicateEvaluated (int type, int num, boolean condition)
void fireSyntacticPredicateFailed ()
void fireSyntacticPredicateStarted ()
void fireSyntacticPredicateSucceeded ()
void setupDebugging (TokenStream lexer, TokenBuffer tokenBuf)

Protected Attributes

ParserEventSupport parserEventSupport = new ParserEventSupport(this)
String ruleNames []
String semPredNames []

Constructor & Destructor Documentation

antlr.debug.LLkDebuggingParser.LLkDebuggingParser ( int  k_  ) 
antlr.debug.LLkDebuggingParser.LLkDebuggingParser ( ParserSharedInputState  state,
int  k_ 
)
antlr.debug.LLkDebuggingParser.LLkDebuggingParser ( TokenBuffer  tokenBuf,
int  k_ 
)
antlr.debug.LLkDebuggingParser.LLkDebuggingParser ( TokenStream  lexer,
int  k_ 
)

Member Function Documentation

void antlr.debug.LLkDebuggingParser.addMessageListener ( MessageListener  l  ) 
void antlr.debug.LLkDebuggingParser.addParserListener ( ParserListener  l  ) 
void antlr.debug.LLkDebuggingParser.addParserMatchListener ( ParserMatchListener  l  ) 
void antlr.debug.LLkDebuggingParser.addParserTokenListener ( ParserTokenListener  l  ) 
void antlr.debug.LLkDebuggingParser.addSemanticPredicateListener ( SemanticPredicateListener  l  ) 
void antlr.debug.LLkDebuggingParser.addSyntacticPredicateListener ( SyntacticPredicateListener  l  ) 
void antlr.debug.LLkDebuggingParser.addTraceListener ( TraceListener  l  ) 
void antlr.debug.LLkDebuggingParser.consume (  )  throws TokenStreamException
boolean antlr.debug.LLkDebuggingParser.fireSemanticPredicateEvaluated ( int  type,
int  num,
boolean  condition 
) [protected]
String antlr.debug.LLkDebuggingParser.getRuleName ( int  num  ) 
String antlr.debug.LLkDebuggingParser.getSemPredName ( int  num  ) 
synchronized void antlr.debug.LLkDebuggingParser.goToSleep (  ) 
boolean antlr.debug.LLkDebuggingParser.isGuessing (  ) 
int antlr.debug.LLkDebuggingParser.LA ( int  i  )  throws TokenStreamException

Return the token type of the ith token of lookahead where i=1 is the current token being examined by the parser (i.e., it has not been matched yet).

References antlr.debug.ParserEventSupport.fireLA(), and antlr.debug.LLkDebuggingParser.parserEventSupport.

Referenced by antlr.debug.LLkDebuggingParser.consume(), antlr.debug.LLkDebuggingParser.match(), and antlr.debug.LLkDebuggingParser.matchNot().

void antlr.debug.LLkDebuggingParser.match ( int  t  )  throws MismatchedTokenException, TokenStreamException

Make sure current lookahead symbol matches token type t. Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.

References antlr.debug.ParserEventSupport.fireMatch(), antlr.debug.ParserEventSupport.fireMismatch(), antlr.Token.getText(), antlr.ParserSharedInputState.guessing, antlr.Parser.inputState, antlr.debug.LLkDebuggingParser.LA(), antlr.LLkParser.LT(), and antlr.debug.LLkDebuggingParser.parserEventSupport.

void antlr.debug.LLkDebuggingParser.match ( BitSet  b  )  throws MismatchedTokenException, TokenStreamException

Make sure current lookahead symbol matches the given set Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.

References antlr.debug.ParserEventSupport.fireMatch(), antlr.debug.ParserEventSupport.fireMismatch(), antlr.Token.getText(), antlr.ParserSharedInputState.guessing, antlr.Parser.inputState, antlr.debug.LLkDebuggingParser.LA(), antlr.LLkParser.LT(), and antlr.debug.LLkDebuggingParser.parserEventSupport.

void antlr.debug.LLkDebuggingParser.removeMessageListener ( MessageListener  l  ) 
void antlr.debug.LLkDebuggingParser.removeParserListener ( ParserListener  l  ) 
void antlr.debug.LLkDebuggingParser.removeParserMatchListener ( ParserMatchListener  l  ) 
void antlr.debug.LLkDebuggingParser.removeParserTokenListener ( ParserTokenListener  l  ) 
void antlr.debug.LLkDebuggingParser.removeSemanticPredicateListener ( SemanticPredicateListener  l  ) 
void antlr.debug.LLkDebuggingParser.removeSyntacticPredicateListener ( SyntacticPredicateListener  l  ) 
void antlr.debug.LLkDebuggingParser.removeTraceListener ( TraceListener  l  ) 
void antlr.debug.LLkDebuggingParser.reportError ( String  s  ) 

Parser error-reporting function can be overridden in subclass

References antlr.debug.ParserEventSupport.fireReportError(), and antlr.debug.LLkDebuggingParser.parserEventSupport.

void antlr.debug.LLkDebuggingParser.reportError ( RecognitionException  ex  ) 

Parser error-reporting function can be overridden in subclass

References antlr.debug.ParserEventSupport.fireReportError(), and antlr.debug.LLkDebuggingParser.parserEventSupport.

void antlr.debug.LLkDebuggingParser.reportWarning ( String  s  ) 

Parser warning-reporting function can be overridden in subclass

References antlr.debug.ParserEventSupport.fireReportWarning(), and antlr.debug.LLkDebuggingParser.parserEventSupport.

void antlr.debug.LLkDebuggingParser.setDebugMode ( boolean  value  ) 
void antlr.debug.LLkDebuggingParser.setupDebugging ( TokenStream  lexer  ) 
void antlr.debug.LLkDebuggingParser.setupDebugging ( TokenStream  lexer,
TokenBuffer  tokenBuf 
) [protected]

User can override to do their own debugging

References antlr.debug.LLkDebuggingParser.setDebugMode().

void antlr.debug.LLkDebuggingParser.setupDebugging ( TokenBuffer  tokenBuf  ) 
synchronized void antlr.debug.LLkDebuggingParser.wakeUp (  ) 

Member Data Documentation


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