Home
last modified time | relevance | path

Searched refs:grammarName (Results 1 – 20 of 20) sorted by relevance

/external/antlr/antlr-3.4/runtime/Python/tests/
Dtestbase.py113 self.grammarName = None
183 def compileGrammar(self, grammarName=None, options='', javaOptions=''): argument
184 if grammarName is None:
185 grammarName = self.moduleName + '.g'
193 if self.grammarName is None:
194 self.grammarName = os.path.splitext(grammarName)[0]
196 grammarPath = os.path.join(os.path.dirname(os.path.abspath(__file__)), grammarName)
210 if grammarName in compileErrorCache:
280 compileErrorCache[grammarName] = True
315 self.lexerModule = self.__load_module(self.grammarName)
[all …]
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/
DParserLoader.java47 …public ParserLoader(String grammarName, String classDir) throws IOException, ClassNotFoundExceptio… in ParserLoader() argument
49 final String lexerName = grammarName + "Lexer"; in ParserLoader()
55 grammar = grammarName; in ParserLoader()
56 File[] files = dir.listFiles(new ClassFilenameFilter(grammarName)); in ParserLoader()
112 private String grammarName; field in ParserLoader.ClassFilenameFilter
115 grammarName = name; in ClassFilenameFilter()
119 return name.startsWith(grammarName) && name.endsWith(".class"); in accept()
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/
DGrammarInfo.java36 private String grammarName; // targeted grammar for unit test field in GrammarInfo
45 return grammarName; in getGrammarName()
48 public void setGrammarName(String grammarName) { in setGrammarName() argument
49 this.grammarName = grammarName; in setGrammarName()
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/
DTestSuite.java37 protected String grammarName ; field in TestSuite
42 grammarName = gname; in TestSuite()
78 public void setGrammarName(String name) { grammarName = name;} in setGrammarName()
80 public String getGrammarName() { return grammarName; } in getGrammarName()
DTestSuiteFactory.java71 final String grammarName = fileName.substring(0, fileName.lastIndexOf('.')); in createTestSuite() local
73 … final File testFile = new File(grammarDir + File.separator + grammarName + TEST_SUITE_EXT); in createTestSuite()
75 final TestSuite result = new TestSuite(grammarName, testFile); in createTestSuite()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DCompositeGrammarTree.java100 public CompositeGrammarTree findNode(String grammarName) { in findNode() argument
101 if ( grammarName==null ) { in findNode()
104 if ( grammarName.equals(this.grammar.name) ) { in findNode()
110 n = child.findNode(grammarName); in findNode()
DGrammarSpelunker.java54 protected String grammarName; field in GrammarSpelunker
109 grammarName = token; in grammarHeader()
143 public String getGrammarName() { return grammarName; } in getGrammarName()
245 System.out.println(g.grammarModifier+" grammar "+g.grammarName); in main()
DCompositeGrammar.java304 public Grammar getGrammar(String grammarName) { in getGrammar() argument
305 CompositeGrammarTree t = delegateGrammarTreeRoot.findNode(grammarName); in getGrammar()
DGrammar.java2236 String grammarName = grammarNameAST.getText(); in importGrammar() local
2238 String gname = grammarName + GRAMMAR_FILE_EXTENSION; in importGrammar()
2277 lexerGrammarST.add("imports", grammarName); in importGrammar()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRDebugEventProxy.m88 NSLog(@"ANTLR waiting for debugger attach (grammar %@)", [self grammarName]);
95 …[self sendToDebugger:[NSString stringWithFormat:@"grammar \"%@", [self grammarName]] waitForRespon…
148 - (NSString *) grammarName
150 return grammarName;
155 if (grammarName != aGrammarName) {
157 [grammarName release];
158 grammarName = aGrammarName;
DANTLRDebugEventProxy.h46 NSString *grammarName; variable
63 - (NSString *) grammarName;
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DParseTreeBuilder.cs51 public ParseTreeBuilder( string grammarName ) in ParseTreeBuilder() argument
53 ParseTree root = Create( "<grammar " + grammarName + ">" ); in ParseTreeBuilder()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DParseTreeBuilder.cs49 public ParseTreeBuilder(string grammarName) { in ParseTreeBuilder() argument
50 ParseTree root = Create("<grammar " + grammarName + ">"); in ParseTreeBuilder()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DSerializedGrammar.java104 String grammarName = readString(in); in readFile() local
105 this.name = grammarName; in readFile()
106 System.out.println(grammarType+" grammar "+grammarName); in readFile()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DParseTreeBuilder.java48 public ParseTreeBuilder(String grammarName) { in ParseTreeBuilder() argument
49 ParseTree root = create("<grammar "+grammarName+">"); in ParseTreeBuilder()
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
DANTLRDebugEventProxy.h46 NSString *grammarName; variable
63 - (NSString *) grammarName;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
DANTLRDebugEventProxy.h46 NSString *grammarName; variable
63 - (NSString *) grammarName;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
DANTLRDebugEventProxy.h46 NSString *grammarName; variable
63 - (NSString *) grammarName;
/external/antlr/antlr-3.4/gunit/src/main/resources/org/antlr/gunit/swingui/
Dgunit.stg3 gUnitFile(testSuite) ::= <<gunit <testSuite.grammarName>;
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/
DTool.java568 String grammarName = grammar.getGrammarName(); in sortGrammarFiles() local
572 g.addEdge(grammarName+CodeGenerator.VOCAB_FILE_EXTENSION, gfile); in sortGrammarFiles()