Boo.Lang.Parser.BooParserBase.eos C# (CSharp) Method

eos() protected method

protected eos ( ) : void
return void
        protected void eos()
        {
            try {      // for error handling
            { // ( ... )+
                int _cnt23=0;
                for (;;)
                {
                    if ((LA(1)==EOL||LA(1)==EOS) && (tokenSet_9_.member(LA(2))))
                    {
                        {
                            switch ( LA(1) )
                            {
                            case EOL:
                            {
                                match(EOL);
                                break;
                            }
                            case EOS:
                            {
                                match(EOS);
                                break;
                            }
                            default:
                            {
                                throw new NoViableAltException(LT(1), getFilename());
                            }
                             }
                        }
                    }
                    else
                    {
                        if (_cnt23 >= 1) { goto _loop23_breakloop; } else { throw new NoViableAltException(LT(1), getFilename());; }
                    }

                    _cnt23++;
                }
            _loop23_breakloop:				;
            }    // ( ... )+
            }
            catch (RecognitionException ex)
            {
            if (0 == inputState.guessing)
            {
                reportError(ex, "eos");
                recover(ex,tokenSet_9_);
            }
            else
            {
                throw ex;
            }
            }
        }
BooParserBase