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

GetGrammarMaxLookahead() public method

public GetGrammarMaxLookahead ( ) : int
return int
        public virtual int GetGrammarMaxLookahead()
        {
            if ( global_k >= 0 )
            {
                return global_k;
            }
            object k = GetOption( "k" );
            if ( k == null )
            {
                global_k = 0;
            }
            else if ( k is int )
            {
                int kI = (int)k;
                global_k = kI;
            }
            else
            {
                // must be String "*"
                if ( k.Equals( "*" ) )
                {  // this the default anyway
                    global_k = 0;
                }
            }
            return global_k;
        }
Grammar