Antlr3.Tool.Grammar.Grammar C# (CSharp) Method

Grammar() public method

public Grammar ( Antlr3.AntlrTool tool ) : System.Collections.Generic
tool Antlr3.AntlrTool
return System.Collections.Generic
        public Grammar(Tool tool)
        {
            nameSpaceChecker = new NameSpaceChecker( this );
            ll1Analyzer = new LL1Analyzer( this );
            sanity = new GrammarSanity( this );

            builtFromString = true;
            composite = new CompositeGrammar( this );
            Tool = tool;

            TemplateGroup lexerGrammarTemplateGroup = new TemplateGroupString(lexerGrammarTemplateText);
            _lexerGrammarTemplate = lexerGrammarTemplateGroup.GetInstanceOf("grammar");
            string targetsDirectory = Path.Combine(AntlrTool.ToolPathRoot, "Targets");
            target = CodeGenerator.LoadLanguageTarget((string)GetOption("language"), targetsDirectory);
        }

Same methods

Grammar::Grammar ( ) : System.Collections.Generic
Grammar::Grammar ( Antlr3.AntlrTool tool, string grammarString ) : System.Collections.Generic
Grammar::Grammar ( Antlr3.AntlrTool tool, string fileName, Antlr3.Tool.CompositeGrammar composite ) : System.Collections.Generic
Grammar::Grammar ( string grammarString ) : System.Collections.Generic
Grammar