Home
last modified time | relevance | path

Searched refs:grammarFile (Results 1 – 3 of 3) sorted by relevance

/external/antlr/gunit/src/main/java/org/antlr/gunit/swingui/model/
DTestSuiteFactory.java67 public static TestSuite createTestSuite(File grammarFile) { in createTestSuite() argument
68 if(grammarFile != null && grammarFile.exists() && grammarFile.isFile()) { in createTestSuite()
70 final String fileName = grammarFile.getName(); in createTestSuite()
72 final String grammarDir = grammarFile.getParent(); in createTestSuite()
76 result.rules = loadRulesFromGrammar(grammarFile); in createTestSuite()
90 private static List<Rule> loadRulesFromGrammar(File grammarFile) { in loadRulesFromGrammar() argument
95 final Reader reader = new BufferedReader(new FileReader(grammarFile)); in loadRulesFromGrammar()
153 final File grammarFile = getGrammarFile(file); in loadTestSuite() local
154 if(grammarFile == null) in loadTestSuite()
175 final List<Rule> completeRuleList = loadRulesFromGrammar(grammarFile); in loadTestSuite()
/external/antlr/tool/src/main/java/org/antlr/
DTool.java383 File grammarFile; in buildRequired() local
385 grammarFile = new File(inputDirectory, grammarFileName); in buildRequired()
388 grammarFile = new File(grammarFileName); in buildRequired()
390 long grammarLastModified = grammarFile.lastModified(); in buildRequired()
396 … System.out.println("Output file " + outputFile + " does not exist: must build " + grammarFile); in buildRequired()
399 … System.out.println("Output file " + outputFile + " is not up-to-date: must build " + grammarFile); in buildRequired()
413 …stem.out.println("Input file " + inputFile + " is newer than output: must rebuild " + grammarFile); in buildRequired()
422 System.out.println("Grammar " + grammarFile + " is up to date - build skipped"); in buildRequired()
/external/antlr/gunit/src/main/java/org/antlr/gunit/swingui/
DWorkSpaceController.java105 final File grammarFile = jfc.getSelectedFile(); in OnCreateTest() local
107 currentTestSuite = TestSuiteFactory.createTestSuite(grammarFile); in OnCreateTest()