| org.antlr.test.BaseTest org.antlr.test.TestTreeNodeStream org.antlr.test.TestUnBufferedTreeNodeStream
TestUnBufferedTreeNodeStream | public class TestUnBufferedTreeNodeStream extends TestTreeNodeStream (Code) | | Created by IntelliJ IDEA.
User: parrt
Date: Dec 22, 2006
Time: 11:47:55 AM
To change this template use File | Settings | File Templates.
|
testBufferWrap | public void testBufferWrap() throws Exception(Code) | | Test what happens when tail hits the end of the buffer, but there
is more room left. Specifically that would mean that head is not
at 0 but has advanced somewhere to the middle of the lookahead
buffer.
Use consume() to advance N nodes into lookahead. Then use LT()
to load at least INITIAL_LOOKAHEAD_BUFFER_SIZE-N nodes so the
buffer has to wrap.
|
Methods inherited from org.antlr.test.BaseTest | protected boolean antlr(String fileName, String grammarFileName, String grammarStr, boolean debug)(Code)(Java Doc) protected boolean compile(String fileName)(Code)(Java Doc) protected void eraseFiles(String filesEndingWith)(Code)(Java Doc) protected String execParser(String grammarFileName, String grammarStr, String parserName, String lexerName, String startRuleName, String input, boolean debug)(Code)(Java Doc) protected String execTreeParser(String parserGrammarFileName, String parserGrammarStr, String parserName, String treeParserGrammarFileName, String treeParserGrammarStr, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, String input)(Code)(Java Doc) protected String execTreeParser(String parserGrammarFileName, String parserGrammarStr, String parserName, String treeParserGrammarFileName, String treeParserGrammarStr, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, String input, boolean debug)(Code)(Java Doc) public String getFirstLineOfException()(Code)(Java Doc) protected void mkdir(String dir)(Code)(Java Doc) protected Tool newTool()(Code)(Java Doc) protected String rawExecRecognizer(String parserName, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, boolean parserBuildsTrees, boolean parserBuildsTemplate, boolean debug)(Code)(Java Doc) protected boolean rawGenerateAndBuildRecognizer(String grammarFileName, String grammarStr, String parserName, String lexerName, boolean debug)(Code)(Java Doc) protected void writeFile(String dir, String fileName, String content)(Code)(Java Doc) protected void writeTemplateTestFile(String parserName, String lexerName, String parserStartRuleName, boolean debug)(Code)(Java Doc) protected void writeTestFile(String parserName, String lexerName, String parserStartRuleName, boolean debug)(Code)(Java Doc) protected void writeTreeTestFile(String parserName, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, boolean debug)(Code)(Java Doc)
|
|
|