/external/antlr/tool/src/test/java/org/antlr/test/ |
D | TestAutoAST.java | 39 String grammar = in testTokenList() local 46 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testTokenList() 52 String grammar = in testTokenListInSingleAltBlock() local 59 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testTokenListInSingleAltBlock() 65 String grammar = in testSimpleRootAtOuterLevel() local 72 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testSimpleRootAtOuterLevel() 78 String grammar = in testSimpleRootAtOuterLevelReverse() local 85 String found = execParser("T.g", grammar, "TParser", "TLexer", in testSimpleRootAtOuterLevelReverse() 91 String grammar = in testBang() local 98 String found = execParser("T.g", grammar, "TParser", "TLexer", in testBang() [all …]
|
D | TestRewriteAST.java | 44 String grammar = in testDelete() local 51 String found = execParser("T.g", grammar, "TParser", "TLexer", in testDelete() 57 String grammar = in testSingleToken() local 64 String found = execParser("T.g", grammar, "TParser", "TLexer", in testSingleToken() 70 String grammar = in testSingleTokenToNewNode() local 77 String found = execParser("T.g", grammar, "TParser", "TLexer", in testSingleTokenToNewNode() 83 String grammar = in testSingleTokenToNewNodeRoot() local 90 String found = execParser("T.g", grammar, "TParser", "TLexer", in testSingleTokenToNewNodeRoot() 97 String grammar = in testSingleTokenToNewNode2() local 104 String found = execParser("TT.g", grammar, "TTParser", "TTLexer", in testSingleTokenToNewNode2() [all …]
|
D | TestTreeGrammarRewriteAST.java | 49 String grammar = in testFlatList() local 63 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testFlatList() 69 String grammar = in testSimpleTree() local 83 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testSimpleTree() 89 String grammar = in testNonImaginaryWithCtor() local 102 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testNonImaginaryWithCtor() 108 String grammar = in testCombinedRewriteAndAuto() local 122 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testCombinedRewriteAndAuto() 126 found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testCombinedRewriteAndAuto() 132 String grammar = in testAvoidDup() local [all …]
|
D | TestSets.java | 45 String grammar = in testSeqDoesNotBecomeSet() local 51 String found = execParser("P.g", grammar, "PParser", "PLexer", in testSeqDoesNotBecomeSet() 57 String grammar = in testParserSet() local 60 String found = execParser("T.g", grammar, "TParser", "TLexer", in testParserSet() 66 String grammar = in testParserNotSet() local 69 String found = execParser("T.g", grammar, "TParser", "TLexer", in testParserNotSet() 75 String grammar = in testParserNotToken() local 78 String found = execParser("T.g", grammar, "TParser", "TLexer", in testParserNotToken() 84 String grammar = in testParserNotTokenWithLabel() local 87 String found = execParser("T.g", grammar, "TParser", "TLexer", in testParserNotTokenWithLabel() [all …]
|
D | TestHeteroAST.java | 41 String grammar = in testToken() local 52 String found = execParser("T.g", grammar, "TParser", "TLexer", in testToken() 58 String grammar = in testTokenCommonTree() local 64 String found = execParser("T.g", grammar, "TParser", "TLexer", in testTokenCommonTree() 70 String grammar = in testTokenWithQualifiedType() local 81 String found = execParser("T.g", grammar, "TParser", "TLexer", in testTokenWithQualifiedType() 87 String grammar = in testNamedType() local 98 String found = execParser("T.g", grammar, "TParser", "TLexer", in testNamedType() 105 String grammar = in testTokenWithLabel() local 116 String found = execParser("T.g", grammar, "TParser", "TLexer", in testTokenWithLabel() [all …]
|
D | TestSyntacticPredicateEvaluation.java | 36 String grammar = in testTwoPredsWithNakedAlt() local 55 String found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAlt() 64 found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAlt() 72 found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAlt() 85 String grammar = in testTwoPredsWithNakedAltNotLast() local 104 String found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAltNotLast() 113 found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAltNotLast() 121 found = execParser("T.g", grammar, "TParser", "TLexer", in testTwoPredsWithNakedAltNotLast() 133 String grammar = in testLexerPred() local 142 String found = execParser("T.g", grammar, "TParser", "TLexer", in testLexerPred() [all …]
|
D | TestSemanticPredicateEvaluation.java | 36 String grammar = in testSimpleCyclicDFAWithPredicate() local 41 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testSimpleCyclicDFAWithPredicate() 47 String grammar = in testSimpleCyclicDFAWithInstanceVarPredicate() local 53 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testSimpleCyclicDFAWithInstanceVarPredicate() 59 String grammar = in testPredicateValidation() local 69 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testPredicateValidation() 75 String grammar = in testLexerPreds() local 81 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testLexerPreds() 88 String grammar = in testLexerPreds2() local 94 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", in testLexerPreds2() [all …]
|
D | TestTreeParsing.java | 36 String grammar = in testFlatList() local 50 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testFlatList() 56 String grammar = in testSimpleTree() local 70 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testSimpleTree() 76 String grammar = in testFlatVsTreeDecision() local 93 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testFlatVsTreeDecision() 99 String grammar = in testFlatVsTreeDecision2() local 116 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testFlatVsTreeDecision2() 123 String grammar = in testCyclicDFALookahead() local 139 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", in testCyclicDFALookahead() [all …]
|
D | TestLexer.java | 48 String grammar = in testSetText() local 53 String found = execParser("P.g", grammar, "PParser", "PLexer", in testSetText() 61 String grammar = in testRefToRuleDoesNotSetTokenNorEmitAnother() local 67 String found = execParser("P.g", grammar, "PParser", "PLexer", in testRefToRuleDoesNotSetTokenNorEmitAnother() 75 String grammar = in testRefToRuleDoesNotSetChannel() local 81 String found = execParser("P.g", grammar, "PParser", "PLexer", in testRefToRuleDoesNotSetChannel() 87 String grammar = in testWeCanSetType() local 94 String found = execParser("P.g", grammar, "PParser", "PLexer", in testWeCanSetType() 102 String grammar = in testRefToFragment() local 108 String found = execParser("P.g", grammar, "PParser", "PLexer", in testRefToFragment() [all …]
|
D | TestLeftRecursion.java | 14 String grammar = in testSimple() local 22 String found = execParser("T.g", grammar, "TParser", "TLexer", in testSimple() 29 String grammar = in testSemPred() local 37 String found = execParser("T.g", grammar, "TParser", "TLexer", in testSemPred() 44 String grammar = in testTernaryExpr() local 66 runTests(grammar, tests, "e"); in testTernaryExpr() 70 String grammar = in testDeclarationsUsingASTOperators() local 97 runTests(grammar, tests, "declarator"); in testDeclarationsUsingASTOperators() 101 String grammar = in testDeclarationsUsingRewriteOperators() local 128 runTests(grammar, tests, "declarator"); in testDeclarationsUsingRewriteOperators() [all …]
|
D | TestJavaCodeGeneration.java | 43 String grammar = in testDupVarDefForPinchedState() local 50 "T.g", grammar, "TParser", null, false); in testDupVarDefForPinchedState() 57 String grammar = in testLabeledNotSetsInLexer() local 63 "T.g", grammar, null, "T", false); in testLabeledNotSetsInLexer() 70 String grammar = in testLabeledSetsInLexer() local 75 String found = execParser("T.g", grammar, "TParser", "TLexer", in testLabeledSetsInLexer() 82 String grammar = in testLabeledRangeInLexer() local 87 String found = execParser("T.g", grammar, "TParser", "TLexer", in testLabeledRangeInLexer() 94 String grammar = in testLabeledWildcardInLexer() local 99 String found = execParser("T.g", grammar, "TParser", "TLexer", in testLabeledWildcardInLexer() [all …]
|
/external/antlr/runtime/Python/tests/ |
D | t058rewriteAST.py | 64 def execParser(self, grammar, grammarEntry, input, expectErrors=False): argument 65 lexerCls, parserCls = self.compileInlineGrammar(grammar) 92 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument 93 lexerCls, parserCls = self.compileInlineGrammar(grammar) 113 grammar = textwrap.dedent( 123 found = self.execParser(grammar, "a", "abc 34") 128 grammar = textwrap.dedent( 138 found = self.execParser(grammar, "a", "abc") 143 grammar = textwrap.dedent( 153 found = self.execParser(grammar, "a", "abc") [all …]
|
D | t057autoAST.py | 64 def execParser(self, grammar, grammarEntry, input, expectErrors=False): argument 65 lexerCls, parserCls = self.compileInlineGrammar(grammar) 92 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument 93 lexerCls, parserCls = self.compileInlineGrammar(grammar) 113 grammar = textwrap.dedent( 123 found = self.execParser(grammar, "a", "abc 34") 128 grammar = textwrap.dedent( 138 found = self.execParser(grammar,"a", "abc 34") 143 grammar = textwrap.dedent( 153 found = self.execParser(grammar, "a", "abc 34") [all …]
|
D | t051treeRewriteAST.py | 29 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument 30 lexerCls, parserCls = self.compileInlineGrammar(grammar) 50 grammar = textwrap.dedent( 77 grammar, 'a', 86 grammar = textwrap.dedent( 112 grammar, 'a', 121 grammar = textwrap.dedent( 147 grammar, 'a', 156 grammar, 'a', 165 grammar = textwrap.dedent( [all …]
|
D | t053hetero.py | 63 def execParser(self, grammar, grammarEntry, input): argument 64 lexerCls, parserCls = self.compileInlineGrammar(grammar) 78 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument 79 lexerCls, parserCls = self.compileInlineGrammar(grammar) 101 grammar = textwrap.dedent( 121 grammar, 'a', 129 grammar = textwrap.dedent( 142 grammar, 'a', 149 grammar = textwrap.dedent( 168 grammar, 'a', [all …]
|
D | t049treeparser.py | 35 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument 36 lexerCls, parserCls = self.compileInlineGrammar(grammar) 53 grammar = textwrap.dedent( 77 grammar, 'a', 87 grammar = textwrap.dedent( 111 grammar, 'a', 120 grammar = textwrap.dedent( 147 grammar, 'a', 155 grammar = textwrap.dedent( 182 grammar, 'a', [all …]
|
D | t055templates.py | 12 def execParser(self, grammar, grammarEntry, input, group=None): argument 13 lexerCls, parserCls = self.compileInlineGrammar(grammar) 28 grammar = textwrap.dedent( 46 grammar, 'a', 68 grammar = textwrap.dedent( 86 grammar, 'a', 95 grammar = textwrap.dedent( 112 grammar, 'a', 120 grammar = textwrap.dedent( 141 grammar, 'a', [all …]
|
/external/antlr/runtime/Python3/tests/ |
D | t058rewriteAST.py | 64 def execParser(self, grammar, grammarEntry, input, expectErrors=False): argument 65 lexerCls, parserCls = self.compileInlineGrammar(grammar) 92 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument 93 lexerCls, parserCls = self.compileInlineGrammar(grammar) 113 grammar = textwrap.dedent( 123 found = self.execParser(grammar, "a", "abc 34") 128 grammar = textwrap.dedent( 138 found = self.execParser(grammar, "a", "abc") 143 grammar = textwrap.dedent( 153 found = self.execParser(grammar, "a", "abc") [all …]
|
D | t057autoAST.py | 64 def execParser(self, grammar, grammarEntry, input, expectErrors=False): argument 65 lexerCls, parserCls = self.compileInlineGrammar(grammar) 92 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument 93 lexerCls, parserCls = self.compileInlineGrammar(grammar) 113 grammar = textwrap.dedent( 123 found = self.execParser(grammar, "a", "abc 34") 128 grammar = textwrap.dedent( 138 found = self.execParser(grammar,"a", "abc 34") 143 grammar = textwrap.dedent( 153 found = self.execParser(grammar, "a", "abc 34") [all …]
|
D | t051treeRewriteAST.py | 29 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument 30 lexerCls, parserCls = self.compileInlineGrammar(grammar) 50 grammar = textwrap.dedent( 77 grammar, 'a', 86 grammar = textwrap.dedent( 112 grammar, 'a', 121 grammar = textwrap.dedent( 147 grammar, 'a', 156 grammar, 'a', 165 grammar = textwrap.dedent( [all …]
|
D | t053hetero.py | 63 def execParser(self, grammar, grammarEntry, input): argument 64 lexerCls, parserCls = self.compileInlineGrammar(grammar) 78 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument 79 lexerCls, parserCls = self.compileInlineGrammar(grammar) 101 grammar = textwrap.dedent( 121 grammar, 'a', 129 grammar = textwrap.dedent( 142 grammar, 'a', 149 grammar = textwrap.dedent( 168 grammar, 'a', [all …]
|
D | t049treeparser.py | 35 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): argument 36 lexerCls, parserCls = self.compileInlineGrammar(grammar) 53 grammar = textwrap.dedent( 77 grammar, 'a', 87 grammar = textwrap.dedent( 111 grammar, 'a', 120 grammar = textwrap.dedent( 147 grammar, 'a', 155 grammar = textwrap.dedent( 182 grammar, 'a', [all …]
|
/external/deqp-deps/SPIRV-Tools/ |
D | Android.bp | 2 name: "deqp_spirv.debuginfo.grammar.json", 3 srcs: ["source/extinst.debuginfo.grammar.json"], 15 ":deqp_spirv.core.grammar.json-1.0", 16 ":deqp_spirv.glsl.grammar.json", 17 ":deqp_spirv.opencl.grammar.json", 18 ":deqp_spirv.debuginfo.grammar.json", 21 cmd: "$(location) --spirv-core-grammar=$(location :deqp_spirv.core.grammar.json-1.0) "+ 22 "--extinst-glsl-grammar=$(location :deqp_spirv.glsl.grammar.json) "+ 23 "--extinst-opencl-grammar=$(location :deqp_spirv.opencl.grammar.json) "+ 24 "--extinst-debuginfo-grammar=$(location :deqp_spirv.debuginfo.grammar.json) "+ [all …]
|
/external/antlr/runtime/Ruby/test/functional/debugging/ |
D | debug-mode.rb | 66 def parse( grammar, rule, input, options = {} ) argument 67 @grammar = inline_grammar( grammar ) 91 grammar = %q< 99 parse( grammar, :a, 'a', :listener => listener ) 114 grammar = %q< 121 debugger = parse( grammar, :a, 'a' ) 144 grammar = %q< 151 debugger = parse( grammar, :a, "a b" ) 181 grammar = %q< 189 debugger = parse( grammar, :a, "a" ) [all …]
|
/external/antlr/tool/src/main/java/org/antlr/tool/ |
D | NameSpaceChecker.java | 38 protected Grammar grammar; field in NameSpaceChecker 40 public NameSpaceChecker(Grammar grammar) { in NameSpaceChecker() argument 41 this.grammar = grammar; in NameSpaceChecker() 45 …for (int i = CompositeGrammar.MIN_RULE_INDEX; i < grammar.composite.ruleIndexToRuleList.size(); i+… in checkConflicts() 46 Rule r = grammar.composite.ruleIndexToRuleList.elementAt(i); in checkConflicts() 68 for (AttributeScope scope : grammar.getGlobalScopes().values()) { in checkConflicts() 82 grammar, in checkForRuleArgumentAndReturnValueConflicts() 95 if ( (grammar.type==Grammar.PARSER||grammar.type==Grammar.TREE_PARSER) && in checkForRuleDefinitionProblems() 100 else if ( grammar.type==Grammar.LEXER && in checkForRuleDefinitionProblems() 106 else if ( grammar.getGlobalScope(ruleName)!=null ) { in checkForRuleDefinitionProblems() [all …]
|