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

ast_literal_module_prediction() public method

public ast_literal_module_prediction ( ) : void
return void
        public void ast_literal_module_prediction()
        {
            try {      // for error handling
            {
                switch ( LA(1) )
                {
                case EOL:
                case EOS:
                {
                    eos();
                    break;
                }
                case IMPORT:
                case NAMESPACE:
                {
                    break;
                }
                default:
                {
                    throw new NoViableAltException(LT(1), getFilename());
                }
                 }
            }
            {
                switch ( LA(1) )
                {
                case NAMESPACE:
                {
                    match(NAMESPACE);
                    break;
                }
                case IMPORT:
                {
                    match(IMPORT);
                    break;
                }
                default:
                {
                    throw new NoViableAltException(LT(1), getFilename());
                }
                 }
            }
            }
            catch (RecognitionException ex)
            {
            if (0 == inputState.guessing)
            {
                reportError(ex, "ast_literal_module_prediction");
                recover(ex,tokenSet_0_);
            }
            else
            {
                throw ex;
            }
            }
        }
BooParserBase