HomeSort by relevance Sort by last modified time
    Searched refs:Grammar (Results 1 - 25 of 126) sorted by null

1 2 3 4 5 6

  /external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
TestNFAConstruction.java 32 import org.antlr.tool.Grammar;
42 Grammar g = new Grammar(
43 "parser grammar P;\n"+
55 Grammar g = new Grammar(
56 "parser grammar P;\n"+
69 Grammar g = new Grammar(
70 "parser grammar P;\n"
    [all...]
TestASTConstruction.java 30 import org.antlr.tool.Grammar;
40 Grammar g = new Grammar(
41 "parser grammar P;\n"+
50 Grammar g = new Grammar(
51 "parser grammar P;\n"+
60 Grammar g = new Grammar(
61 "lexer grammar P;\n"
    [all...]
TestCharDFAConversion.java 47 Grammar g = new Grammar(
48 "lexer grammar t;\n"+
60 Grammar g = new Grammar(
61 "lexer grammar t;\n"+
77 Grammar g = new Grammar(
78 "lexer grammar t;\n"+
94 Grammar g = new Grammar
    [all...]
TestSemanticPredicates.java 49 Grammar g = new Grammar(
50 "parser grammar P;\n"+
59 Grammar g = new Grammar(
60 "parser grammar P;\n"+
71 Grammar g = new Grammar(
72 "parser grammar P;\n"+
82 Grammar g = new Grammar
    [all...]
TestDFAConversion.java 43 Grammar g = new Grammar(
44 "parser grammar t;\n"+
53 Grammar g = new Grammar(
54 "parser grammar t;\n"+
64 Grammar g = new Grammar(
65 "parser grammar t;\n" +
76 Grammar g = new Grammar
    [all...]
TestInterpretedParsing.java 33 import org.antlr.tool.Grammar;
43 Grammar pg = new Grammar(
44 "parser grammar p;\n"+
48 Grammar g = new Grammar();
50 g.setFileName(Grammar.IGNORE_STRING_IN_GRAMMAR_FILE_NAME +"string");
52 "lexer grammar t;\n"+
73 "(<grammar p> (prog while x { (assign i = (expr 1) ;) (assign y = (expr 3.42) ;) (assign z = (expr y) ;) } <EOF>))";
78 Grammar pg = new Grammar
    [all...]
TestDFAMatching.java 33 import org.antlr.tool.Grammar;
43 Grammar g = new Grammar(
44 "lexer grammar t;\n"+
56 Grammar g = new Grammar(
57 "lexer grammar t;\n"+
70 Grammar g = new Grammar(
71 "lexer grammar t;\n"
    [all...]
TestSymbolDefinitions.java 46 Grammar g = new Grammar(
47 "parser grammar t;\n"+
56 Grammar g = new Grammar(
57 "parser grammar t;\n" +
70 Grammar g = new Grammar(
71 "lexer grammar t;\n" +
84 Grammar g = new Grammar
187 String grammar = local
202 String grammar = local
    [all...]
TestInterpretedLexing.java 34 import org.antlr.tool.Grammar;
42 Grammar g;
43 public DebugActions(Grammar g) {
80 Grammar g = new Grammar(
81 "lexer grammar t;\n"+
94 Grammar g = new Grammar(
95 "lexer grammar t;\n"+
105 Grammar g = new Grammar
    [all...]
TestTokenRewriteStream.java 33 import org.antlr.tool.Grammar;
44 Grammar g = new Grammar(
45 "lexer grammar t;\n"+
59 Grammar g = new Grammar(
60 "lexer grammar t;\n"+
74 Grammar g = new Grammar(
75 "lexer grammar t;\n"
    [all...]
TestAttributes.java 32 import org.antlr.grammar.v3.ANTLRParser;
33 import org.antlr.grammar.v3.ActionTranslator;
55 Grammar g = new Grammar();
75 Grammar g = new Grammar(
76 "parser grammar t;\n"+
98 Grammar g = new Grammar(
99 "parser grammar t;\n"
261 String grammar = local
290 String grammar = local
325 String grammar = local
2119 String grammar = local
2133 String grammar = local
    [all...]
TestTemplates.java 32 import org.antlr.grammar.v3.ANTLRParser;
33 import org.antlr.grammar.v3.ActionTranslator;
38 import org.antlr.tool.Grammar;
55 Grammar g = new Grammar(
56 "grammar t;\n" +
92 Grammar g = new Grammar(
93 "grammar t;\n" +
130 Grammar g = new Grammar
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
ActionLabel.java 30 import org.antlr.tool.Grammar;
53 public String toString(Grammar g) {
NFA.java 30 import org.antlr.tool.Grammar;
33 /** An NFA (collection of NFAStates) constructed from a grammar. This
34 * NFA is one big machine for entire grammar. Decision points are recorded
35 * by the Grammar object so we can, for example, convert to DFA or simulate
41 /** This NFA represents which grammar? */
42 public Grammar grammar; field in class:NFA
49 public NFA(Grammar g) {
50 this.grammar = g;
54 return grammar.composite.getNewNFAStateNumber()
    [all...]
NFAConversionThread.java 32 import org.antlr.tool.Grammar;
36 Grammar grammar; field in class:NFAConversionThread
39 public NFAConversionThread(Grammar grammar,
44 this.grammar = grammar;
51 NFAState decisionStartState = grammar.getDecisionNFAStartState(decision);
53 grammar.createLookaheadDFA(decision,true);
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
CompositeGrammar.java 31 import org.antlr.grammar.v3.ANTLRParser;
32 import org.antlr.grammar.v3.AssignTokenTypesWalker;
46 * We have to start out assuming a composite grammar situation as we can't
47 * look into the grammar files a priori to see if there is a delegate
49 * in each grammar, even single noncomposite grammars use one of these objects
99 /** If combined or lexer grammar, track the rules.
147 public CompositeGrammar(Grammar g) {
152 public void setDelegationRoot(Grammar root) {
165 /** Add delegate grammar as child of delegator */
166 public void addGrammar(Grammar delegator, Grammar delegate)
    [all...]
CompositeGrammarTree.java 36 public Grammar grammar; field in class:CompositeGrammarTree
41 public CompositeGrammarTree(Grammar g) {
42 grammar = g;
57 /** Find a rule by looking in current grammar then down towards the
61 Rule r = grammar.getLocallyDefinedRule(ruleName);
69 /** Find an option by looking up towards the root grammar rather than down */
71 if ( grammar.tool!=null && key!=null && key.equals("language") &&
72 grammar.tool.forcedLanguageOption!=null ) {
73 return grammar.tool.forcedLanguageOption
    [all...]
GrammarReport2.java 40 public Grammar root;
42 public GrammarReport2(Grammar rootGrammar) {
50 for (Grammar g : composite.getDelegates(root)) {
56 void stats(Grammar g, StringBuilder buf) {
59 Grammar.Decision d = g.getDecision(decision);
Rule.java 32 import org.antlr.grammar.v3.ANTLRParser;
60 /** To which grammar does this belong? */
61 public Grammar grammar; field in class:Rule
85 /** A list of all LabelElementPair attached to tokens like x=. in tree grammar */
88 /** A list of all LabelElementPair attached to tokens like x+=. in tree grammar */
106 protected Map<String, Grammar.LabelElementPair> labelNameSpace =
107 new HashMap<String, Grammar.LabelElementPair>();
160 public Rule(Grammar grammar,
    [all...]
GrammarSemanticsMessage.java 33 /** A problem with the symbols and/or meaning of a grammar such as rule
37 public Grammar g;
44 Grammar g,
51 Grammar g,
59 Grammar g,
AssignTokenTypesBehavior.java 31 import org.antlr.grammar.v3.AssignTokenTypesWalker;
37 /** Move all of the functionality from assign.types.g grammar file. */
57 protected void init(Grammar g) {
58 this.grammar = g;
70 if ( currentRuleName==null && grammar.type==Grammar.LEXER ) {
72 grammar,
77 // in a plain parser grammar rule, cannot reference literals
79 // don't warn until we hit root grammar as may be defined there.
80 if ( grammar.getGrammarIsRoot() &
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
JavaTarget.java 31 import org.antlr.tool.Grammar;
40 Grammar grammar,
48 protected void performGrammarAnalysis(CodeGenerator generator, Grammar grammar) {
49 super.performGrammarAnalysis(generator, grammar);
50 for (Rule rule : grammar.getRules()) {
53 Set<Rule> delegatedRules = grammar.getDelegatedRules();
ObjCTarget.java 34 import org.antlr.tool.Grammar;
41 Grammar grammar,
46 generator.write(headerFileST, grammar.name + Grammar.grammarTypeToFileNameSuffix[grammar.type] + extName);
64 /** Convert from an ANTLR string literal found in a grammar file to
83 String name = generator.grammar.getTokenDisplayName(ttype);
89 //return generator.grammar.name + Grammar.grammarTypeToFileNameSuffix[generator.grammar.type] + "_" + name
    [all...]
CTarget.java 32 import org.antlr.tool.Grammar;
44 Grammar grammar,
52 String fileName = generator.getRecognizerFileName(grammar.name, grammar.type);
59 Grammar grammar,
67 String fileName = generator.getRecognizerFileName(grammar.name, grammar.type);
75 Grammar grammar
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
IntSet.java 30 import org.antlr.tool.Grammar;
83 String toString(Grammar g);

Completed in 199 milliseconds

1 2 3 4 5 6