| org.antlr.test.BaseTest
All known Subclasses: org.antlr.test.TestMessages, org.antlr.test.TestSemanticPredicateEvaluation, org.antlr.test.TestLexer, org.antlr.test.TestTreeParsing, org.antlr.test.TestASTConstruction, org.antlr.test.TestTemplates, org.antlr.test.TestInterpretedParsing, org.antlr.test.TestSets, org.antlr.test.TestTreeWizard, org.antlr.test.TestDFAConversion, org.antlr.test.TestAttributes, org.antlr.test.TestIntervalSet, org.antlr.test.TestCharDFAConversion, org.antlr.test.TestDFAMatching, org.antlr.test.TestSemanticPredicates, org.antlr.test.TestTreeNodeStream, org.antlr.test.TestNFAConstruction, org.antlr.test.TestRewriteAST, org.antlr.test.TestSyntacticPredicateEvaluation, org.antlr.test.TestTokenRewriteStream, org.antlr.test.TestSymbolDefinitions, org.antlr.test.TestInterpretedLexing, org.antlr.test.TestRewriteTemplates, org.antlr.test.TestAutoAST, org.antlr.test.TestJavaCodeGeneration,
BaseTest | abstract public class BaseTest extends TestCase (Code) | | |
Inner Class :public static class StreamVacuum implements Runnable | |
Method Summary | |
protected boolean | antlr(String fileName, String grammarFileName, String grammarStr, boolean debug) | protected boolean | compile(String fileName) | protected void | eraseFiles(String filesEndingWith) | protected String | execParser(String grammarFileName, String grammarStr, String parserName, String lexerName, String startRuleName, String input, boolean debug) | protected String | execTreeParser(String parserGrammarFileName, String parserGrammarStr, String parserName, String treeParserGrammarFileName, String treeParserGrammarStr, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, String input) | 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) | public String | getFirstLineOfException() | protected void | mkdir(String dir) | protected Tool | newTool() | protected String | rawExecRecognizer(String parserName, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, boolean parserBuildsTrees, boolean parserBuildsTemplate, boolean debug) | protected boolean | rawGenerateAndBuildRecognizer(String grammarFileName, String grammarStr, String parserName, String lexerName, boolean debug) | protected void | writeFile(String dir, String fileName, String content) | protected void | writeTemplateTestFile(String parserName, String lexerName, String parserStartRuleName, boolean debug) | protected void | writeTestFile(String parserName, String lexerName, String parserStartRuleName, boolean debug) | protected void | writeTreeTestFile(String parserName, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, boolean debug) |
stderr | protected String stderr(Code) | | If error during execution, store stderr here
|
antlr | protected boolean antlr(String fileName, String grammarFileName, String grammarStr, boolean debug)(Code) | | Return true if all is ok, no errors
|
eraseFiles | protected void eraseFiles(String filesEndingWith)(Code) | | |
execTreeParser | 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) | | |
getFirstLineOfException | public String getFirstLineOfException()(Code) | | |
rawExecRecognizer | protected String rawExecRecognizer(String parserName, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, boolean parserBuildsTrees, boolean parserBuildsTemplate, boolean debug)(Code) | | |
rawGenerateAndBuildRecognizer | protected boolean rawGenerateAndBuildRecognizer(String grammarFileName, String grammarStr, String parserName, String lexerName, boolean debug)(Code) | | Return true if all is well
|
writeTemplateTestFile | protected void writeTemplateTestFile(String parserName, String lexerName, String parserStartRuleName, boolean debug)(Code) | | |
writeTestFile | protected void writeTestFile(String parserName, String lexerName, String parserStartRuleName, boolean debug)(Code) | | |
writeTreeTestFile | protected void writeTreeTestFile(String parserName, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, boolean debug)(Code) | | |
|
|