public void uponEOF() throws TokenStreamException, CharStreamException { popNestedLexer(); try { selector.pop(); // return to old lexer/stream selector.retry(); } catch (java.util.NoSuchElementException e) { // No including stream, return EOF } }
/** * Push a macro-processing nestedLexer onto the linked list of nestedLexers. */ public void pushMacroLexer(JBurgANTLRLexer macro_lexer) throws antlr.TokenStreamRetryException { macro_lexer.mainSourceFile = getCurrent().mainSourceFile; pushNestedLexer(macro_lexer); this.selector.push(macro_lexer); this.selector.retry(); }
selector.retry();