Antlr3.Tool.ErrorManager.DoNotAttemptAnalysis C# (CSharp) Method

DoNotAttemptAnalysis() public static method

public static DoNotAttemptAnalysis ( ) : bool
return bool
        public static bool DoNotAttemptAnalysis()
        {
            return !GetErrorState().errorMsgIDs.And( ErrorsForcingNoAnalysis ).IsNil;
        }

Usage Example

Beispiel #1
0
        public virtual void CreateNFAs()
        {
            if (ErrorManager.DoNotAttemptAnalysis())
            {
                return;
            }
            IList <Grammar> grammars = delegateGrammarTreeRoot.GetPostOrderedGrammarList();
            IList <string>  names    = new List <string>();

            for (int i = 0; i < grammars.Count; i++)
            {
                Grammar g = (Grammar)grammars[i];
                names.Add(g.name);
            }
            //System.Console.Out.WriteLine( "### createNFAs for composite; grammars: " + names );
            for (int i = 0; grammars != null && i < grammars.Count; i++)
            {
                Grammar g = (Grammar)grammars[i];
                g.CreateRuleStartAndStopNFAStates();
            }
            for (int i = 0; grammars != null && i < grammars.Count; i++)
            {
                Grammar g = (Grammar)grammars[i];
                g.BuildNFA();
            }
        }