Home
last modified time | relevance | path

Searched refs:grammarInfo (Results 1 – 7 of 7) sorted by relevance

/external/antlr/gunit/src/main/java/org/antlr/gunit/
DJUnitCodeGen.java48 public GrammarInfo grammarInfo; field in JUnitCodeGen
59 … public JUnitCodeGen(GrammarInfo grammarInfo, String testsuiteDir) throws ClassNotFoundException { in JUnitCodeGen() argument
60 this( grammarInfo, determineClassLoader(), testsuiteDir); in JUnitCodeGen()
71 …public JUnitCodeGen(GrammarInfo grammarInfo, ClassLoader classLoader, String testsuiteDir) throws … in JUnitCodeGen() argument
72 this.grammarInfo = grammarInfo; in JUnitCodeGen()
76 Class<?> parserClass = locateParserClass( grammarInfo, classLoader ); in JUnitCodeGen()
85 …private Class<?> locateParserClass(GrammarInfo grammarInfo, ClassLoader classLoader) throws ClassN… in locateParserClass() argument
86 String parserClassName = grammarInfo.getGrammarName() + "Parser"; in locateParserClass()
87 if ( grammarInfo.getGrammarPackage() != null ) { in locateParserClass()
88 parserClassName = grammarInfo.getGrammarPackage()+ "." + parserClassName; in locateParserClass()
[all …]
DgUnitExecutor.java54 public GrammarInfo grammarInfo; field in gUnitExecutor
80 public gUnitExecutor(GrammarInfo grammarInfo, String testsuiteDir) { in gUnitExecutor() argument
81 this( grammarInfo, determineClassLoader(), testsuiteDir); in gUnitExecutor()
92 …public gUnitExecutor(GrammarInfo grammarInfo, ClassLoader grammarClassLoader, String testsuiteDir)… in gUnitExecutor() argument
93 this.grammarInfo = grammarInfo; in gUnitExecutor()
117 if (grammarInfo.getGrammarPackage()!=null ) { in execTest()
118 parserName = grammarInfo.getGrammarPackage()+"."+grammarInfo.getGrammarName()+"Parser"; in execTest()
119 lexerName = grammarInfo.getGrammarPackage()+"."+grammarInfo.getGrammarName()+"Lexer"; in execTest()
122 parserName = grammarInfo.getGrammarName()+"Parser"; in execTest()
123 lexerName = grammarInfo.getGrammarName()+"Lexer"; in execTest()
[all …]
DInterp.java59 GrammarInfo grammarInfo = parse(input); in main() local
60 grammarInfo.setTestPackage(testPackage); in main()
61 JUnitCodeGen generater = new JUnitCodeGen(grammarInfo, testsuiteDir); in main()
103 GrammarInfo grammarInfo = new GrammarInfo(); in parse() local
104 gUnitParser parser = new gUnitParser(tokens, grammarInfo); in parse()
106 return grammarInfo; in parse()
/external/antlr/gunit/src/main/java/org/antlr/gunit/swingui/runner/
DgUnitAdapter.java65 final GrammarInfo grammarInfo = new GrammarInfo(); in run() local
66 final gUnitParser parser = new gUnitParser(tokens, grammarInfo); in run()
71 grammarInfo, loader, in run()
DNotifiedTestExecuter.java42 …public NotifiedTestExecuter(GrammarInfo grammarInfo, ClassLoader loader, String testsuiteDir, Test… in NotifiedTestExecuter() argument
43 super(grammarInfo, loader, testsuiteDir); in NotifiedTestExecuter()
/external/antlr/gunit/src/main/antlr3/org/antlr/gunit/
DgUnit.g44 public GrammarInfo grammarInfo;
45 public gUnitParser(TokenStream input, GrammarInfo grammarInfo) {
47 this.grammarInfo = grammarInfo;
54 grammarInfo.setGrammarName($g2.text);
55 grammarInfo.setTreeGrammarName($g1.text);
58 grammarInfo.setGrammarName($g1.text);
72 grammarInfo.setAdaptor($treeAdaptor.text);
87grammarInfo.setGrammarPackage($ACTION.text.substring(pos1+8, pos2).trim()); // substring the packa…
116 testcase[ts]+ {grammarInfo.addRuleTestSuite(ts);}
/external/antlr/gunit-maven-plugin/src/main/java/org/antlr/mojo/antlr3/
DGUnitExecuteMojo.java298 GrammarInfo grammarInfo = Interp.parse( antlrStream ); in performExecution() local
300 grammarInfo, in performExecution()