Uses of Class
antlr.TokenStreamException
Packages that use TokenStreamException
Package
Description
-
Uses of TokenStreamException in antlr
Subclasses of TokenStreamException in antlrModifier and TypeClassDescriptionclassWraps an IOException in a TokenStreamExceptionclassWraps a RecognitionException in a TokenStreamException so you can pass it along.classAborted recognition of current token.Methods in antlr that throw TokenStreamExceptionModifier and TypeMethodDescriptionfinal voidANTLRParser.alternative()final intANTLRParser.ast_type_spec()final voidANTLRParser.block()final BitSetANTLRParser.charSet()final voidANTLRParser.classDef()voidLLkParser.consume()Consume another token from the input stream.abstract voidParser.consume()Get another token object from the token streamprotected voidTokenStreamHiddenTokenFilter.consume()voidParser.consumeUntil(int tokenType) Consume tokens until one matches the given tokenvoidParser.consumeUntil(BitSet set) Consume tokens until one matches the given token setfinal voidfinal voidANTLRParser.element()final voidANTLRParser.elementNoOptionSpec()final voidANTLRParser.elementOptionSpec()final voidANTLRParser.exceptionGroup()final voidANTLRParser.exceptionHandler()final voidANTLRParser.exceptionSpec()final voidANTLRParser.exceptionSpecNoLabel()final voidANTLRTokdefParser.file(ImportVocabTokenManager tm) final voidANTLRParser.fileOptionsSpec()final voidANTLRParser.grammar()final TokenANTLRParser.id()intLLkParser.LA(int i) abstract intParser.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).final intTokenBuffer.LA(int i) Get a lookahead token valuefinal voidANTLRParser.lexerOptionsSpec()final voidfinal voidANTLRTokdefParser.line(ImportVocabTokenManager tm) LLkParser.LT(int i) abstract TokenParser.LT(int i) Return the ith token of lookaheadfinal TokenTokenBuffer.LT(int i) Get a lookahead tokenfinal voidANTLRLexer.mACTION(boolean _createToken) final voidANTLRLexer.mARG_ACTION(boolean _createToken) final voidANTLRLexer.mASSIGN(boolean _createToken) final voidANTLRTokdefLexer.mASSIGN(boolean _createToken) voidParser.match(int t) Make sure current lookahead symbol matches token type t.voidMake 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.voidParser.matchNot(int t) final voidANTLRLexer.mBANG(boolean _createToken) final voidANTLRLexer.mCARET(boolean _createToken) final voidANTLRLexer.mCHAR_LITERAL(boolean _createToken) final voidANTLRLexer.mCLOSE_ELEMENT_OPTION(boolean _createToken) final voidANTLRLexer.mCOLON(boolean _createToken) final voidANTLRLexer.mCOMMA(boolean _createToken) final voidANTLRLexer.mCOMMENT(boolean _createToken) protected final voidANTLRLexer.mDIGIT(boolean _createToken) protected final voidANTLRTokdefLexer.mDIGIT(boolean _createToken) protected final voidANTLRLexer.mESC(boolean _createToken) protected final voidANTLRTokdefLexer.mESC(boolean _createToken) final voidANTLRTokdefLexer.mID(boolean _createToken) final voidANTLRLexer.mIMPLIES(boolean _createToken) final voidANTLRLexer.mINT(boolean _createToken) final voidANTLRTokdefLexer.mINT(boolean _createToken) protected final intANTLRLexer.mINTERNAL_RULE_REF(boolean _createToken) final voidANTLRLexer.mLPAREN(boolean _createToken) final voidANTLRTokdefLexer.mLPAREN(boolean _createToken) protected final voidANTLRLexer.mML_COMMENT(boolean _createToken) final voidANTLRTokdefLexer.mML_COMMENT(boolean _createToken) protected final voidANTLRLexer.mNESTED_ACTION(boolean _createToken) protected final voidANTLRLexer.mNESTED_ARG_ACTION(boolean _createToken) final voidANTLRLexer.mNOT_OP(boolean _createToken) final voidANTLRLexer.mOPEN_ELEMENT_OPTION(boolean _createToken) final voidANTLRLexer.mOR(boolean _createToken) final voidANTLRLexer.mPLUS(boolean _createToken) final voidANTLRLexer.mQUESTION(boolean _createToken) final voidANTLRLexer.mRANGE(boolean _createToken) final voidANTLRLexer.mRCURLY(boolean _createToken) final voidANTLRLexer.mRPAREN(boolean _createToken) final voidANTLRTokdefLexer.mRPAREN(boolean _createToken) final voidANTLRLexer.mRULE_REF(boolean _createToken) final voidANTLRLexer.mSEMI(boolean _createToken) protected final voidANTLRLexer.mSL_COMMENT(boolean _createToken) final voidANTLRTokdefLexer.mSL_COMMENT(boolean _createToken) final voidANTLRLexer.mSTAR(boolean _createToken) final voidANTLRTokdefLexer.mSTRING(boolean _createToken) final voidANTLRLexer.mSTRING_LITERAL(boolean _createToken) final voidANTLRLexer.mTOKEN_REF(boolean _createToken) final voidANTLRLexer.mTREE_BEGIN(boolean _createToken) final voidANTLRLexer.mWILDCARD(boolean _createToken) final voidANTLRLexer.mWS(boolean _createToken) final voidANTLRTokdefLexer.mWS(boolean _createToken) protected final voidANTLRLexer.mWS_LOOP(boolean _createToken) protected final voidANTLRLexer.mWS_OPT(boolean _createToken) protected final voidANTLRLexer.mXDIGIT(boolean _createToken) protected final voidANTLRTokdefLexer.mXDIGIT(boolean _createToken) ANTLRLexer.nextToken()ANTLRTokdefLexer.nextToken()TokenStream.nextToken()TokenStreamBasicFilter.nextToken()TokenStreamHiddenTokenFilter.nextToken()Return the next monitored token.TokenStreamRewriteEngine.nextToken()TokenStreamSelector.nextToken()final voidANTLRParser.notTerminal(Token label) final TokenANTLRParser.optionValue()final voidANTLRParser.parserOptionsSpec()final voidANTLRParser.parserSpec(String doc) final TokenANTLRParser.qualifiedID()Match a.b.c.d qualified ids; WILDCARD here is overloaded as id separator; that is, I need a reference to the '.' token.final voidvoidParser.recover(RecognitionException ex, BitSet tokenSet) final voidANTLRParser.rootNode()final voidANTLRParser.rule()final voidANTLRParser.ruleOptionsSpec()final voidANTLRParser.rules()final BitSetANTLRParser.setBlockElement()final voidANTLRParser.subruleOptionsSpec()final StringANTLRParser.superClass()final voidfinal voidANTLRParser.throwsSpec()final voidANTLRParser.tokensSpec()final voidANTLRParser.tokensSpecOptions(Token t) voidvoidvoidvoidfinal voidANTLRParser.tree()final voidANTLRParser.treeParserOptionsSpec()final voidANTLRParser.treeParserSpec(String doc) voidCharScanner.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 TokenStreamExceptionModifier and TypeMethodDescriptionfinal voidActionLexer.mACTION(boolean _createToken) protected final voidActionLexer.mARG(boolean _createToken) protected final voidActionLexer.mAST_CONSTRUCTOR(boolean _createToken) protected final voidActionLexer.mAST_CTOR_ELEMENT(boolean _createToken) The arguments of a #[...] constructor are text, token type, or a tree.protected final voidActionLexer.mAST_ITEM(boolean _createToken) protected final voidActionLexer.mCHAR(boolean _createToken) protected final voidActionLexer.mCOMMENT(boolean _createToken) protected final voidActionLexer.mDIGIT(boolean _createToken) protected final voidActionLexer.mESC(boolean _createToken) protected final voidActionLexer.mID(boolean _createToken) protected final booleanActionLexer.mID_ELEMENT(boolean _createToken) An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.protected final voidActionLexer.mINT(boolean _createToken) protected final voidActionLexer.mINT_OR_FLOAT(boolean _createToken) protected final voidActionLexer.mML_COMMENT(boolean _createToken) protected final voidActionLexer.mSL_COMMENT(boolean _createToken) protected final voidActionLexer.mSTRING(boolean _createToken) protected final voidActionLexer.mSTUFF(boolean _createToken) stuff in between #(...) and #id items Allow the escaping of the # for C preprocessor stuff.protected final voidActionLexer.mTEXT_ARG(boolean _createToken) protected final voidActionLexer.mTEXT_ARG_ELEMENT(boolean _createToken) protected final voidActionLexer.mTEXT_ARG_ID_ELEMENT(boolean _createToken) protected final voidActionLexer.mTEXT_ITEM(boolean _createToken) protected final voidActionLexer.mTREE(boolean _createToken) protected final voidActionLexer.mTREE_ELEMENT(boolean _createToken) protected final voidActionLexer.mVAR_ASSIGN(boolean _createToken) protected final voidActionLexer.mWS(boolean _createToken) ActionLexer.nextToken() -
Uses of TokenStreamException in antlr.actions.csharp
Methods in antlr.actions.csharp that throw TokenStreamExceptionModifier and TypeMethodDescriptionfinal voidActionLexer.mACTION(boolean _createToken) protected final voidActionLexer.mARG(boolean _createToken) protected final voidActionLexer.mAST_CONSTRUCTOR(boolean _createToken) protected final voidActionLexer.mAST_CTOR_ELEMENT(boolean _createToken) The arguments of a #[...] constructor are text, token type, or a tree.protected final voidActionLexer.mAST_ITEM(boolean _createToken) protected final voidActionLexer.mCHAR(boolean _createToken) protected final voidActionLexer.mCOMMENT(boolean _createToken) protected final voidActionLexer.mDIGIT(boolean _createToken) protected final voidActionLexer.mESC(boolean _createToken) protected final voidActionLexer.mID(boolean _createToken) protected final booleanActionLexer.mID_ELEMENT(boolean _createToken) An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.protected final voidActionLexer.mINT(boolean _createToken) protected final voidActionLexer.mINT_OR_FLOAT(boolean _createToken) protected final voidActionLexer.mML_COMMENT(boolean _createToken) protected final voidActionLexer.mSL_COMMENT(boolean _createToken) protected final voidActionLexer.mSTRING(boolean _createToken) protected final voidActionLexer.mSTUFF(boolean _createToken) stuff in between #(...) and #id items Allow the escaping of the # for C# preprocessor stuff.protected final voidActionLexer.mTEXT_ARG(boolean _createToken) protected final voidActionLexer.mTEXT_ARG_ELEMENT(boolean _createToken) protected final voidActionLexer.mTEXT_ARG_ID_ELEMENT(boolean _createToken) protected final voidActionLexer.mTEXT_ITEM(boolean _createToken) protected final voidActionLexer.mTREE(boolean _createToken) protected final voidActionLexer.mTREE_ELEMENT(boolean _createToken) protected final voidActionLexer.mVAR_ASSIGN(boolean _createToken) protected final voidActionLexer.mWS(boolean _createToken) ActionLexer.nextToken() -
Uses of TokenStreamException in antlr.actions.java
Methods in antlr.actions.java that throw TokenStreamExceptionModifier and TypeMethodDescriptionfinal voidActionLexer.mACTION(boolean _createToken) protected final voidActionLexer.mARG(boolean _createToken) protected final voidActionLexer.mAST_CONSTRUCTOR(boolean _createToken) protected final voidActionLexer.mAST_CTOR_ELEMENT(boolean _createToken) The arguments of a #[...] constructor are text, token type, or a tree.protected final voidActionLexer.mAST_ITEM(boolean _createToken) protected final voidActionLexer.mCHAR(boolean _createToken) protected final voidActionLexer.mCOMMENT(boolean _createToken) protected final voidActionLexer.mDIGIT(boolean _createToken) protected final voidActionLexer.mESC(boolean _createToken) protected final voidActionLexer.mID(boolean _createToken) protected final booleanActionLexer.mID_ELEMENT(boolean _createToken) An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.protected final voidActionLexer.mINT(boolean _createToken) protected final voidActionLexer.mINT_OR_FLOAT(boolean _createToken) protected final voidActionLexer.mML_COMMENT(boolean _createToken) protected final voidActionLexer.mSL_COMMENT(boolean _createToken) protected final voidActionLexer.mSTRING(boolean _createToken) protected final voidActionLexer.mSTUFF(boolean _createToken) protected final voidActionLexer.mTEXT_ARG(boolean _createToken) protected final voidActionLexer.mTEXT_ARG_ELEMENT(boolean _createToken) protected final voidActionLexer.mTEXT_ARG_ID_ELEMENT(boolean _createToken) protected final voidActionLexer.mTEXT_ITEM(boolean _createToken) protected final voidActionLexer.mTREE(boolean _createToken) protected final voidActionLexer.mTREE_ELEMENT(boolean _createToken) protected final voidActionLexer.mVAR_ASSIGN(boolean _createToken) protected final voidActionLexer.mWS(boolean _createToken) ActionLexer.nextToken() -
Uses of TokenStreamException in antlr.actions.python
Methods in antlr.actions.python that throw TokenStreamExceptionModifier and TypeMethodDescriptionfinal voidActionLexer.mACTION(boolean _createToken) final voidCodeLexer.mACTION(boolean _createToken) protected final voidActionLexer.mARG(boolean _createToken) protected final voidActionLexer.mAST_CONSTRUCTOR(boolean _createToken) protected final voidActionLexer.mAST_CTOR_ELEMENT(boolean _createToken) The arguments of a #[...] constructor are text, token type, or a tree.protected final voidActionLexer.mAST_ITEM(boolean _createToken) protected final voidActionLexer.mCHAR(boolean _createToken) protected final voidActionLexer.mCOMMENT(boolean _createToken) protected final voidCodeLexer.mCOMMENT(boolean _createToken) protected final voidActionLexer.mDIGIT(boolean _createToken) protected final voidActionLexer.mESC(boolean _createToken) protected final voidActionLexer.mID(boolean _createToken) protected final booleanActionLexer.mID_ELEMENT(boolean _createToken) An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.protected final voidActionLexer.mIGNWS(boolean _createToken) protected final voidCodeLexer.mIGNWS(boolean _createToken) protected final voidActionLexer.mINT(boolean _createToken) protected final voidActionLexer.mINT_OR_FLOAT(boolean _createToken) protected final voidActionLexer.mML_COMMENT(boolean _createToken) protected final voidCodeLexer.mML_COMMENT(boolean _createToken) protected final voidActionLexer.mSL_COMMENT(boolean _createToken) protected final voidCodeLexer.mSL_COMMENT(boolean _createToken) protected final voidActionLexer.mSTRING(boolean _createToken) protected final voidActionLexer.mSTUFF(boolean _createToken) protected final voidCodeLexer.mSTUFF(boolean _createToken) protected final voidActionLexer.mTEXT_ARG(boolean _createToken) protected final voidActionLexer.mTEXT_ARG_ELEMENT(boolean _createToken) protected final voidActionLexer.mTEXT_ARG_ID_ELEMENT(boolean _createToken) protected final voidActionLexer.mTEXT_ITEM(boolean _createToken) protected final voidActionLexer.mTREE(boolean _createToken) protected final voidActionLexer.mTREE_ELEMENT(boolean _createToken) protected final voidActionLexer.mVAR_ASSIGN(boolean _createToken) protected final voidActionLexer.mWS(boolean _createToken) ActionLexer.nextToken()CodeLexer.nextToken() -
Uses of TokenStreamException in antlr.debug
Methods in antlr.debug that throw TokenStreamExceptionModifier and TypeMethodDescriptionprotected voidParseTreeDebugParser.addCurrentTokenToParseTree()This adds LT(1) to the current parse subtree.voidLLkDebuggingParser.consume()Get another token object from the token streamintLLkDebuggingParser.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).voidLLkDebuggingParser.match(int t) Make sure current lookahead symbol matches token type t.voidMake 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.voidParseTreeDebugParser.match(int i) voidvoidLLkDebuggingParser.matchNot(int t) voidParseTreeDebugParser.matchNot(int i) voidCreate a rule node, add to current tree, and make it current rootvoidPop current root; back to adding to old root -
Uses of TokenStreamException in antlr.preprocessor
Methods in antlr.preprocessor that throw TokenStreamExceptionModifier and TypeMethodDescriptionfinal Grammarfinal StringPreprocessor.exceptionGroup()final StringPreprocessor.exceptionHandler()final StringPreprocessor.exceptionSpec()final voidPreprocessor.grammarFile(Hierarchy hier, String file) final voidPreprocessorLexer.mACTION(boolean _createToken) protected final voidPreprocessorLexer.mALT(boolean _createToken) final voidPreprocessorLexer.mARG_ACTION(boolean _createToken) final voidPreprocessorLexer.mASSIGN_RHS(boolean _createToken) final voidPreprocessorLexer.mBANG(boolean _createToken) final voidPreprocessorLexer.mCHAR_LITERAL(boolean _createToken) final voidPreprocessorLexer.mCOMMA(boolean _createToken) final voidPreprocessorLexer.mCOMMENT(boolean _createToken) protected final voidPreprocessorLexer.mCURLY_BLOCK_SCARF(boolean _createToken) protected final voidPreprocessorLexer.mDIGIT(boolean _createToken) protected final voidPreprocessorLexer.mELEMENT(boolean _createToken) protected final voidPreprocessorLexer.mESC(boolean _createToken) protected final voidPreprocessorLexer.mID(boolean _createToken) final voidPreprocessorLexer.mID_OR_KEYWORD(boolean _createToken) This rule picks off keywords in the lexer that need to be handled specially.final voidPreprocessorLexer.mLPAREN(boolean _createToken) protected final voidPreprocessorLexer.mML_COMMENT(boolean _createToken) protected final voidPreprocessorLexer.mNEWLINE(boolean _createToken) final voidPreprocessorLexer.mRCURLY(boolean _createToken) final voidPreprocessorLexer.mRPAREN(boolean _createToken) final voidPreprocessorLexer.mRULE_BLOCK(boolean _createToken) final voidPreprocessorLexer.mSEMI(boolean _createToken) protected final voidPreprocessorLexer.mSL_COMMENT(boolean _createToken) final voidPreprocessorLexer.mSTRING_LITERAL(boolean _createToken) final voidPreprocessorLexer.mSUBRULE_BLOCK(boolean _createToken) final voidPreprocessorLexer.mWS(boolean _createToken) protected final voidPreprocessorLexer.mXDIGIT(boolean _createToken) PreprocessorLexer.nextToken()final IndexedVectorPreprocessor.optionSpec(Grammar gr) final voidfinal StringPreprocessor.superClass()final StringPreprocessor.throwsSpec()