Uses of Class
antlr.Grammar

Packages that use Grammar
antlr   
 

Uses of Grammar in antlr
 

Subclasses of Grammar in antlr
(package private)  class LexerGrammar
          Lexer-specific grammar subclass
(package private)  class ParserGrammar
          Parser-specific grammar subclass
(package private)  class TreeWalkerGrammar
          Parser-specific grammar subclass
 

Fields in antlr declared as Grammar
protected  Grammar LLkAnalyzer.grammar
           
protected  Grammar ImportVocabTokenManager.grammar
           
protected  Grammar GrammarElement.grammar
           
protected  Grammar DefineGrammarSymbols.grammar
           
protected  Grammar CodeGenerator.grammar
          The grammar for which we generate code
 

Methods in antlr with parameters of type Grammar
 void ToolErrorHandler.warnAltAmbiguity(Grammar grammar, AlternativeBlock blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx1, int altIdx2)
          Issue a warning about ambiguity between a alternates
 void ToolErrorHandler.warnAltExitAmbiguity(Grammar grammar, BlockWithImpliedExitPath blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx)
          Issue a warning about ambiguity between an alternate and exit path.
private  void SatherCodeGenerator.setupGrammarParameters(Grammar g)
           
static RuleBlock MakeGrammar.createNextTokenRule(Grammar g, Vector lexRules, java.lang.String rname)
          Used to build nextToken() for the lexer.
 java.lang.String Lookahead.toString(java.lang.String separator, CharFormatter formatter, Grammar g)
           
 void LLkGrammarAnalyzer.setGrammar(Grammar g)
           
 void LLkAnalyzer.setGrammar(Grammar g)
          Set the grammar for the analyzer
private  void JavaCodeGenerator.setupGrammarParameters(Grammar g)
           
private  void DefaultToolErrorHandler.dumpSets(Grammar grammar, boolean lexicalAnalysis, int depth, Lookahead[] sets, java.lang.String linePrefix)
          Dump token/character sets to System.out
 void DefaultToolErrorHandler.warnAltAmbiguity(Grammar grammar, AlternativeBlock blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx1, int altIdx2)
          Issue a warning about ambiguity between a alternates
 void DefaultToolErrorHandler.warnAltExitAmbiguity(Grammar grammar, BlockWithImpliedExitPath blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx)
          Issue a warning about ambiguity between an alternate and exit path.
private  void CppCodeGenerator.setupGrammarParameters(Grammar g)
           
protected  void CodeGenerator.setGrammar(Grammar g)
          Set a grammar for the code generator to use
 void AlternativeBlock.removeTrackingOfRuleRefs(Grammar g)
          Walk the syntactic predicate and, for a rule ref R, remove the ref from the list of FOLLOW references for R (stored in the symbol table.
 

Constructors in antlr with parameters of type Grammar
ZeroOrMoreBlock(Grammar g)
           
ZeroOrMoreBlock(Grammar g, int line)
           
WildcardElement(Grammar g, Token t, int autoGenType)
           
TreeElement(Grammar g, int line)
           
TokenRefElement(Grammar g, Token t, boolean inverted, int autoGenType)
           
TokenRangeElement(Grammar g, Token t1, Token t2, int autoGenType)
           
SynPredBlock(Grammar g)
           
SynPredBlock(Grammar g, int line)
           
StringLiteralElement(Grammar g, Token t, int autoGenType)
           
RuleRefElement(Grammar g, Token t, int autoGenType_)
           
RuleRefElement(Grammar g, java.lang.String t, int line, int autoGenType_)
           
RuleEndElement(Grammar g)
           
RuleBlock(Grammar g, java.lang.String r)
          Construct a named rule.
RuleBlock(Grammar g, java.lang.String r, int line, boolean doAutoGen_)
          Construct a named rule with line number information
OneOrMoreBlock(Grammar g)
           
OneOrMoreBlock(Grammar g, int line)
           
ImportVocabTokenManager(Grammar grammar, java.lang.String filename_, java.lang.String name_, Tool tool_)
           
GrammarElement(Grammar g)
           
GrammarAtom(Grammar g, Token t, int autoGenType)
           
BlockWithImpliedExitPath(Grammar g)
           
BlockWithImpliedExitPath(Grammar g, int line)
           
BlockEndElement(Grammar g)
           
AlternativeElement(Grammar g)
           
AlternativeElement(Grammar g, int autoGenType_)
           
AlternativeBlock(Grammar g)
           
AlternativeBlock(Grammar g, int line, boolean not)
           
ActionElement(Grammar g, Token t)