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

Grammar() public method

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

            this.composite = composite;
            Tool = tool;
            FileName = fileName;
            // ensure we have the composite set to something
            if ( composite.DelegateGrammarTreeRoot == null )
            {
                composite.SetDelegationRoot( this );
            }
            else
            {
                defaultRuleModifier = composite.DelegateGrammarTreeRoot.Grammar.DefaultRuleModifier;
            }

            TemplateGroup lexerGrammarTemplateGroup = new TemplateGroupString(lexerGrammarTemplateText);
            _lexerGrammarTemplate = lexerGrammarTemplateGroup.GetInstanceOf("grammar");
            target = CodeGenerator.LoadLanguageTarget((string)GetOption("language"), tool.TargetsDirectory);
        }

Same methods

Grammar::Grammar ( ) : System.Collections.Generic
Grammar::Grammar ( Antlr3.AntlrTool tool ) : System.Collections.Generic
Grammar::Grammar ( Antlr3.AntlrTool tool, string grammarString ) : System.Collections.Generic
Grammar::Grammar ( string grammarString ) : System.Collections.Generic
Grammar