Home
last modified time | relevance | path

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

/external/antlr/runtime/Python3/tests/
Dtestbase.py111 self.grammarName = None
169 def compileGrammar(self, grammarName=None, options='', javaOptions=''): argument
170 if grammarName is None:
171 grammarName = self.moduleName + '.g'
179 if self.grammarName is None:
180 self.grammarName = os.path.splitext(grammarName)[0]
182 grammarPath = os.path.join(os.path.dirname(os.path.abspath(__file__)), grammarName)
194 if grammarName in compileErrorCache:
261 compileErrorCache[grammarName] = True
294 self.lexerModule = self.__load_module(self.grammarName)
[all …]
/external/antlr/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/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/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/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/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.java314 public Grammar getGrammar(String grammarName) { in getGrammar() argument
315 CompositeGrammarTree t = delegateGrammarTreeRoot.findNode(grammarName); in getGrammar()
DGrammar.java2280 String grammarName = grammarNameAST.getText(); in importGrammar() local
2282 String gname = grammarName + GRAMMAR_FILE_EXTENSION; in importGrammar()
2321 lexerGrammarST.add("imports", grammarName); in importGrammar()
/external/antlr/runtime/ObjC/Framework/
DDebugEventSocketProxy.m141 NSLog(@"ANTLR waiting for debugger attach (grammar %@)", [self grammarName]);
148 …[self sendToDebugger:[NSString stringWithFormat:@"grammar \"%@", [self grammarName]] waitForRespon…
201 - (NSString *) grammarName
203 return grammarName;
208 if (grammarName != aGrammarName) {
210 [grammarName release];
211 grammarName = aGrammarName;
DDebugEventSocketProxy.h46 NSString *grammarName; variable
63 - (NSString *) grammarName;
/external/antlr/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/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/runtime/Java/src/main/java/org/antlr/runtime/
DSerializedGrammar.java113 String grammarName = readString(in); in readFile() local
114 this.name = grammarName; in readFile()
115 System.out.println(grammarType+" grammar "+grammarName); in readFile()
/external/antlr/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/gunit/src/main/resources/org/antlr/gunit/swingui/
Dgunit.stg3 gUnitFile(testSuite) ::= <<gunit <testSuite.grammarName>;
/external/antlr/tool/src/main/java/org/antlr/
DTool.java587 String grammarName = grammar.getGrammarName(); in sortGrammarFiles() local
591 g.addEdge(grammarName+CodeGenerator.VOCAB_FILE_EXTENSION, gfile); in sortGrammarFiles()