Uses of Class
antlr.TokenStreamException
-
Packages that use TokenStreamException Package Description antlr antlr.actions.cpp antlr.actions.csharp antlr.actions.java antlr.actions.python antlr.debug antlr.preprocessor -
-
Uses of TokenStreamException in antlr
Subclasses of TokenStreamException in antlr Modifier and Type Class Description class
TokenStreamIOException
Wraps an IOException in a TokenStreamExceptionclass
TokenStreamRecognitionException
Wraps a RecognitionException in a TokenStreamException so you can pass it along.class
TokenStreamRetryException
Aborted recognition of current token.Methods in antlr that throw TokenStreamException Modifier and Type Method Description void
ANTLRParser. alternative()
int
ANTLRParser. ast_type_spec()
void
ANTLRParser. block()
BitSet
ANTLRParser. charSet()
void
ANTLRParser. classDef()
void
LLkParser. consume()
Consume another token from the input stream.abstract void
Parser. consume()
Get another token object from the token streamprotected void
TokenStreamHiddenTokenFilter. consume()
void
Parser. consumeUntil(int tokenType)
Consume tokens until one matches the given tokenvoid
Parser. consumeUntil(BitSet set)
Consume tokens until one matches the given token setvoid
ANTLRParser. ebnf(Token label, boolean not)
void
ANTLRParser. element()
void
ANTLRParser. elementNoOptionSpec()
void
ANTLRParser. elementOptionSpec()
void
ANTLRParser. exceptionGroup()
void
ANTLRParser. exceptionHandler()
void
ANTLRParser. exceptionSpec()
void
ANTLRParser. exceptionSpecNoLabel()
void
ANTLRTokdefParser. file(ImportVocabTokenManager tm)
void
ANTLRParser. fileOptionsSpec()
void
ANTLRParser. grammar()
Token
ANTLRParser. id()
int
LLkParser. LA(int i)
abstract int
Parser. LA(int i)
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).int
TokenBuffer. LA(int i)
Get a lookahead token valuevoid
ANTLRParser. lexerOptionsSpec()
void
ANTLRParser. lexerSpec(java.lang.String doc)
void
ANTLRTokdefParser. line(ImportVocabTokenManager tm)
Token
LLkParser. LT(int i)
abstract Token
Parser. LT(int i)
Return the ith token of lookaheadToken
TokenBuffer. LT(int i)
Get a lookahead tokenvoid
ANTLRLexer. mACTION(boolean _createToken)
void
ANTLRLexer. mARG_ACTION(boolean _createToken)
void
ANTLRLexer. mASSIGN(boolean _createToken)
void
ANTLRTokdefLexer. mASSIGN(boolean _createToken)
void
Parser. match(int t)
Make sure current lookahead symbol matches token type t.void
Parser. match(BitSet b)
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.void
Parser. matchNot(int t)
void
ANTLRLexer. mBANG(boolean _createToken)
void
ANTLRLexer. mCARET(boolean _createToken)
void
ANTLRLexer. mCHAR_LITERAL(boolean _createToken)
void
ANTLRLexer. mCLOSE_ELEMENT_OPTION(boolean _createToken)
void
ANTLRLexer. mCOLON(boolean _createToken)
void
ANTLRLexer. mCOMMA(boolean _createToken)
void
ANTLRLexer. mCOMMENT(boolean _createToken)
protected void
ANTLRLexer. mDIGIT(boolean _createToken)
protected void
ANTLRTokdefLexer. mDIGIT(boolean _createToken)
protected void
ANTLRLexer. mESC(boolean _createToken)
protected void
ANTLRTokdefLexer. mESC(boolean _createToken)
void
ANTLRTokdefLexer. mID(boolean _createToken)
void
ANTLRLexer. mIMPLIES(boolean _createToken)
void
ANTLRLexer. mINT(boolean _createToken)
void
ANTLRTokdefLexer. mINT(boolean _createToken)
protected int
ANTLRLexer. mINTERNAL_RULE_REF(boolean _createToken)
void
ANTLRLexer. mLPAREN(boolean _createToken)
void
ANTLRTokdefLexer. mLPAREN(boolean _createToken)
protected void
ANTLRLexer. mML_COMMENT(boolean _createToken)
void
ANTLRTokdefLexer. mML_COMMENT(boolean _createToken)
protected void
ANTLRLexer. mNESTED_ACTION(boolean _createToken)
protected void
ANTLRLexer. mNESTED_ARG_ACTION(boolean _createToken)
void
ANTLRLexer. mNOT_OP(boolean _createToken)
void
ANTLRLexer. mOPEN_ELEMENT_OPTION(boolean _createToken)
void
ANTLRLexer. mOR(boolean _createToken)
void
ANTLRLexer. mPLUS(boolean _createToken)
void
ANTLRLexer. mQUESTION(boolean _createToken)
void
ANTLRLexer. mRANGE(boolean _createToken)
void
ANTLRLexer. mRCURLY(boolean _createToken)
void
ANTLRLexer. mRPAREN(boolean _createToken)
void
ANTLRTokdefLexer. mRPAREN(boolean _createToken)
void
ANTLRLexer. mRULE_REF(boolean _createToken)
void
ANTLRLexer. mSEMI(boolean _createToken)
protected void
ANTLRLexer. mSL_COMMENT(boolean _createToken)
void
ANTLRTokdefLexer. mSL_COMMENT(boolean _createToken)
void
ANTLRLexer. mSTAR(boolean _createToken)
void
ANTLRTokdefLexer. mSTRING(boolean _createToken)
void
ANTLRLexer. mSTRING_LITERAL(boolean _createToken)
void
ANTLRLexer. mTOKEN_REF(boolean _createToken)
void
ANTLRLexer. mTREE_BEGIN(boolean _createToken)
void
ANTLRLexer. mWILDCARD(boolean _createToken)
void
ANTLRLexer. mWS(boolean _createToken)
void
ANTLRTokdefLexer. mWS(boolean _createToken)
protected void
ANTLRLexer. mWS_LOOP(boolean _createToken)
protected void
ANTLRLexer. mWS_OPT(boolean _createToken)
protected void
ANTLRLexer. mXDIGIT(boolean _createToken)
protected void
ANTLRTokdefLexer. mXDIGIT(boolean _createToken)
Token
ANTLRLexer. nextToken()
Token
ANTLRTokdefLexer. nextToken()
Token
TokenStream. nextToken()
Token
TokenStreamBasicFilter. nextToken()
Token
TokenStreamHiddenTokenFilter. nextToken()
Return the next monitored token.Token
TokenStreamRewriteEngine. nextToken()
Token
TokenStreamSelector. nextToken()
void
ANTLRParser. notTerminal(Token label)
Token
ANTLRParser. optionValue()
void
ANTLRParser. parserOptionsSpec()
void
ANTLRParser. parserSpec(java.lang.String doc)
Token
ANTLRParser. qualifiedID()
Match a.b.c.d qualified ids; WILDCARD here is overloaded as id separator; that is, I need a reference to the '.' token.void
ANTLRParser. range(Token label)
void
Parser. recover(RecognitionException ex, BitSet tokenSet)
void
ANTLRParser. rootNode()
void
ANTLRParser. rule()
void
ANTLRParser. ruleOptionsSpec()
void
ANTLRParser. rules()
BitSet
ANTLRParser. setBlockElement()
void
ANTLRParser. subruleOptionsSpec()
java.lang.String
ANTLRParser. superClass()
void
ANTLRParser. terminal(Token label)
void
ANTLRParser. throwsSpec()
void
ANTLRParser. tokensSpec()
void
ANTLRParser. tokensSpecOptions(Token t)
void
LLkParser. traceIn(java.lang.String rname)
void
Parser. traceIn(java.lang.String rname)
void
LLkParser. traceOut(java.lang.String rname)
void
Parser. traceOut(java.lang.String rname)
void
ANTLRParser. tree()
void
ANTLRParser. treeParserOptionsSpec()
void
ANTLRParser. treeParserSpec(java.lang.String doc)
void
CharScanner. uponEOF()
This method is called by YourLexer.nextToken() when the lexer has hit EOF condition. -
Uses of TokenStreamException in antlr.actions.cpp
Methods in antlr.actions.cpp that throw TokenStreamException Modifier and Type Method Description void
ActionLexer. mACTION(boolean _createToken)
protected void
ActionLexer. mARG(boolean _createToken)
protected void
ActionLexer. mAST_CONSTRUCTOR(boolean _createToken)
protected void
ActionLexer. mAST_CTOR_ELEMENT(boolean _createToken)
The arguments of a #[...] constructor are text, token type, or a tree.protected void
ActionLexer. mAST_ITEM(boolean _createToken)
protected void
ActionLexer. mCHAR(boolean _createToken)
protected void
ActionLexer. mCOMMENT(boolean _createToken)
protected void
ActionLexer. mDIGIT(boolean _createToken)
protected void
ActionLexer. mESC(boolean _createToken)
protected void
ActionLexer. mID(boolean _createToken)
protected boolean
ActionLexer. mID_ELEMENT(boolean _createToken)
An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.protected void
ActionLexer. mINT(boolean _createToken)
protected void
ActionLexer. mINT_OR_FLOAT(boolean _createToken)
protected void
ActionLexer. mML_COMMENT(boolean _createToken)
protected void
ActionLexer. mSL_COMMENT(boolean _createToken)
protected void
ActionLexer. mSTRING(boolean _createToken)
protected void
ActionLexer. mSTUFF(boolean _createToken)
stuff in between #(...) and #id items Allow the escaping of the # for C preprocessor stuff.protected void
ActionLexer. mTEXT_ARG(boolean _createToken)
protected void
ActionLexer. mTEXT_ARG_ELEMENT(boolean _createToken)
protected void
ActionLexer. mTEXT_ARG_ID_ELEMENT(boolean _createToken)
protected void
ActionLexer. mTEXT_ITEM(boolean _createToken)
protected void
ActionLexer. mTREE(boolean _createToken)
protected void
ActionLexer. mTREE_ELEMENT(boolean _createToken)
protected void
ActionLexer. mVAR_ASSIGN(boolean _createToken)
protected void
ActionLexer. mWS(boolean _createToken)
Token
ActionLexer. nextToken()
-
Uses of TokenStreamException in antlr.actions.csharp
Methods in antlr.actions.csharp that throw TokenStreamException Modifier and Type Method Description void
ActionLexer. mACTION(boolean _createToken)
protected void
ActionLexer. mARG(boolean _createToken)
protected void
ActionLexer. mAST_CONSTRUCTOR(boolean _createToken)
protected void
ActionLexer. mAST_CTOR_ELEMENT(boolean _createToken)
The arguments of a #[...] constructor are text, token type, or a tree.protected void
ActionLexer. mAST_ITEM(boolean _createToken)
protected void
ActionLexer. mCHAR(boolean _createToken)
protected void
ActionLexer. mCOMMENT(boolean _createToken)
protected void
ActionLexer. mDIGIT(boolean _createToken)
protected void
ActionLexer. mESC(boolean _createToken)
protected void
ActionLexer. mID(boolean _createToken)
protected boolean
ActionLexer. mID_ELEMENT(boolean _createToken)
An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.protected void
ActionLexer. mINT(boolean _createToken)
protected void
ActionLexer. mINT_OR_FLOAT(boolean _createToken)
protected void
ActionLexer. mML_COMMENT(boolean _createToken)
protected void
ActionLexer. mSL_COMMENT(boolean _createToken)
protected void
ActionLexer. mSTRING(boolean _createToken)
protected void
ActionLexer. mSTUFF(boolean _createToken)
stuff in between #(...) and #id items Allow the escaping of the # for C# preprocessor stuff.protected void
ActionLexer. mTEXT_ARG(boolean _createToken)
protected void
ActionLexer. mTEXT_ARG_ELEMENT(boolean _createToken)
protected void
ActionLexer. mTEXT_ARG_ID_ELEMENT(boolean _createToken)
protected void
ActionLexer. mTEXT_ITEM(boolean _createToken)
protected void
ActionLexer. mTREE(boolean _createToken)
protected void
ActionLexer. mTREE_ELEMENT(boolean _createToken)
protected void
ActionLexer. mVAR_ASSIGN(boolean _createToken)
protected void
ActionLexer. mWS(boolean _createToken)
Token
ActionLexer. nextToken()
-
Uses of TokenStreamException in antlr.actions.java
Methods in antlr.actions.java that throw TokenStreamException Modifier and Type Method Description void
ActionLexer. mACTION(boolean _createToken)
protected void
ActionLexer. mARG(boolean _createToken)
protected void
ActionLexer. mAST_CONSTRUCTOR(boolean _createToken)
protected void
ActionLexer. mAST_CTOR_ELEMENT(boolean _createToken)
The arguments of a #[...] constructor are text, token type, or a tree.protected void
ActionLexer. mAST_ITEM(boolean _createToken)
protected void
ActionLexer. mCHAR(boolean _createToken)
protected void
ActionLexer. mCOMMENT(boolean _createToken)
protected void
ActionLexer. mDIGIT(boolean _createToken)
protected void
ActionLexer. mESC(boolean _createToken)
protected void
ActionLexer. mID(boolean _createToken)
protected boolean
ActionLexer. mID_ELEMENT(boolean _createToken)
An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.protected void
ActionLexer. mINT(boolean _createToken)
protected void
ActionLexer. mINT_OR_FLOAT(boolean _createToken)
protected void
ActionLexer. mML_COMMENT(boolean _createToken)
protected void
ActionLexer. mSL_COMMENT(boolean _createToken)
protected void
ActionLexer. mSTRING(boolean _createToken)
protected void
ActionLexer. mSTUFF(boolean _createToken)
protected void
ActionLexer. mTEXT_ARG(boolean _createToken)
protected void
ActionLexer. mTEXT_ARG_ELEMENT(boolean _createToken)
protected void
ActionLexer. mTEXT_ARG_ID_ELEMENT(boolean _createToken)
protected void
ActionLexer. mTEXT_ITEM(boolean _createToken)
protected void
ActionLexer. mTREE(boolean _createToken)
protected void
ActionLexer. mTREE_ELEMENT(boolean _createToken)
protected void
ActionLexer. mVAR_ASSIGN(boolean _createToken)
protected void
ActionLexer. mWS(boolean _createToken)
Token
ActionLexer. nextToken()
-
Uses of TokenStreamException in antlr.actions.python
Methods in antlr.actions.python that throw TokenStreamException Modifier and Type Method Description void
ActionLexer. mACTION(boolean _createToken)
void
CodeLexer. mACTION(boolean _createToken)
protected void
ActionLexer. mARG(boolean _createToken)
protected void
ActionLexer. mAST_CONSTRUCTOR(boolean _createToken)
protected void
ActionLexer. mAST_CTOR_ELEMENT(boolean _createToken)
The arguments of a #[...] constructor are text, token type, or a tree.protected void
ActionLexer. mAST_ITEM(boolean _createToken)
protected void
ActionLexer. mCHAR(boolean _createToken)
protected void
ActionLexer. mCOMMENT(boolean _createToken)
protected void
CodeLexer. mCOMMENT(boolean _createToken)
protected void
ActionLexer. mDIGIT(boolean _createToken)
protected void
ActionLexer. mESC(boolean _createToken)
protected void
ActionLexer. mID(boolean _createToken)
protected boolean
ActionLexer. mID_ELEMENT(boolean _createToken)
An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.protected void
ActionLexer. mIGNWS(boolean _createToken)
protected void
CodeLexer. mIGNWS(boolean _createToken)
protected void
ActionLexer. mINT(boolean _createToken)
protected void
ActionLexer. mINT_OR_FLOAT(boolean _createToken)
protected void
ActionLexer. mML_COMMENT(boolean _createToken)
protected void
CodeLexer. mML_COMMENT(boolean _createToken)
protected void
ActionLexer. mSL_COMMENT(boolean _createToken)
protected void
CodeLexer. mSL_COMMENT(boolean _createToken)
protected void
ActionLexer. mSTRING(boolean _createToken)
protected void
ActionLexer. mSTUFF(boolean _createToken)
protected void
CodeLexer. mSTUFF(boolean _createToken)
protected void
ActionLexer. mTEXT_ARG(boolean _createToken)
protected void
ActionLexer. mTEXT_ARG_ELEMENT(boolean _createToken)
protected void
ActionLexer. mTEXT_ARG_ID_ELEMENT(boolean _createToken)
protected void
ActionLexer. mTEXT_ITEM(boolean _createToken)
protected void
ActionLexer. mTREE(boolean _createToken)
protected void
ActionLexer. mTREE_ELEMENT(boolean _createToken)
protected void
ActionLexer. mVAR_ASSIGN(boolean _createToken)
protected void
ActionLexer. mWS(boolean _createToken)
Token
ActionLexer. nextToken()
Token
CodeLexer. nextToken()
-
Uses of TokenStreamException in antlr.debug
Methods in antlr.debug that throw TokenStreamException Modifier and Type Method Description protected void
ParseTreeDebugParser. addCurrentTokenToParseTree()
This adds LT(1) to the current parse subtree.void
LLkDebuggingParser. consume()
Get another token object from the token streamint
LLkDebuggingParser. LA(int i)
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).void
LLkDebuggingParser. match(int t)
Make sure current lookahead symbol matches token type t.void
LLkDebuggingParser. match(BitSet b)
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.void
ParseTreeDebugParser. match(int i)
void
ParseTreeDebugParser. match(BitSet bitSet)
void
LLkDebuggingParser. matchNot(int t)
void
ParseTreeDebugParser. matchNot(int i)
void
ParseTreeDebugParser. traceIn(java.lang.String s)
Create a rule node, add to current tree, and make it current rootvoid
ParseTreeDebugParser. traceOut(java.lang.String s)
Pop current root; back to adding to old root -
Uses of TokenStreamException in antlr.preprocessor
Methods in antlr.preprocessor that throw TokenStreamException Modifier and Type Method Description Grammar
Preprocessor. class_def(java.lang.String file, Hierarchy hier)
java.lang.String
Preprocessor. exceptionGroup()
java.lang.String
Preprocessor. exceptionHandler()
java.lang.String
Preprocessor. exceptionSpec()
void
Preprocessor. grammarFile(Hierarchy hier, java.lang.String file)
void
PreprocessorLexer. mACTION(boolean _createToken)
protected void
PreprocessorLexer. mALT(boolean _createToken)
void
PreprocessorLexer. mARG_ACTION(boolean _createToken)
void
PreprocessorLexer. mASSIGN_RHS(boolean _createToken)
void
PreprocessorLexer. mBANG(boolean _createToken)
void
PreprocessorLexer. mCHAR_LITERAL(boolean _createToken)
void
PreprocessorLexer. mCOMMA(boolean _createToken)
void
PreprocessorLexer. mCOMMENT(boolean _createToken)
protected void
PreprocessorLexer. mCURLY_BLOCK_SCARF(boolean _createToken)
protected void
PreprocessorLexer. mDIGIT(boolean _createToken)
protected void
PreprocessorLexer. mELEMENT(boolean _createToken)
protected void
PreprocessorLexer. mESC(boolean _createToken)
protected void
PreprocessorLexer. mID(boolean _createToken)
void
PreprocessorLexer. mID_OR_KEYWORD(boolean _createToken)
This rule picks off keywords in the lexer that need to be handled specially.void
PreprocessorLexer. mLPAREN(boolean _createToken)
protected void
PreprocessorLexer. mML_COMMENT(boolean _createToken)
protected void
PreprocessorLexer. mNEWLINE(boolean _createToken)
void
PreprocessorLexer. mRCURLY(boolean _createToken)
void
PreprocessorLexer. mRPAREN(boolean _createToken)
void
PreprocessorLexer. mRULE_BLOCK(boolean _createToken)
void
PreprocessorLexer. mSEMI(boolean _createToken)
protected void
PreprocessorLexer. mSL_COMMENT(boolean _createToken)
void
PreprocessorLexer. mSTRING_LITERAL(boolean _createToken)
void
PreprocessorLexer. mSUBRULE_BLOCK(boolean _createToken)
void
PreprocessorLexer. mWS(boolean _createToken)
protected void
PreprocessorLexer. mXDIGIT(boolean _createToken)
Token
PreprocessorLexer. nextToken()
IndexedVector
Preprocessor. optionSpec(Grammar gr)
void
Preprocessor. rule(Grammar gr)
java.lang.String
Preprocessor. superClass()
java.lang.String
Preprocessor. throwsSpec()
-