Antlr3.Tool.Grammar.GetAllImportedRules C# (CSharp) 메소드

GetAllImportedRules() 공개 메소드

public GetAllImportedRules ( ) : HashSet
리턴 HashSet
        public virtual HashSet<Rule> GetAllImportedRules()
        {
            return composite.GetAllImportedRules( this );
        }

Usage Example

예제 #1
0
파일: AntlrTool.cs 프로젝트: antlr/antlrcs
        protected virtual void GenerateNFAs( Grammar g )
        {
            IGraphGenerator generator = GenerateDgmlGraphs ? (IGraphGenerator)new DgmlGenerator(g) : new DOTGenerator(g);
            HashSet<Rule> rules = g.GetAllImportedRules();
            rules.UnionWith( g.Rules );

            foreach ( Rule r in rules )
            {
                try
                {
                    string dot = generator.GenerateGraph( r.StartState );
                    if ( dot != null )
                    {
                        WriteGraphFile( g, r, dot, generator.FileExtension );
                    }
                }
                catch ( IOException ioe )
                {
                    ErrorManager.Error( ErrorManager.MSG_CANNOT_WRITE_FILE, ioe );
                }
            }
        }
All Usage Examples Of Antlr3.Tool.Grammar::GetAllImportedRules
Grammar