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

expression_list() protected method

protected expression_list ( ExpressionCollection ec ) : void
ec ExpressionCollection
return void
        protected void expression_list(
		ExpressionCollection ec
	)
        {
            Expression e = null;

            try {      // for error handling
            {
                switch ( LA(1) )
                {
                case ESEPARATOR:
                case CAST:
                case CHAR:
                case FALSE:
                case NOT:
                case NULL:
                case SELF:
                case SUPER:
                case THEN:
                case TRUE:
                case TYPEOF:
                case TRIPLE_QUOTED_STRING:
                case LPAREN:
                case DOUBLE_QUOTED_STRING:
                case SINGLE_QUOTED_STRING:
                case ID:
                case MULTIPLY:
                case LBRACK:
                case SPLICE_BEGIN:
                case DOT:
                case LBRACE:
                case QQ_BEGIN:
                case SUBTRACT:
                case LONG:
                case INCREMENT:
                case DECREMENT:
                case ONES_COMPLEMENT:
                case INT:
                case BACKTICK_QUOTED_STRING:
                case RE_LITERAL:
                case DOUBLE:
                case FLOAT:
                case TIMESPAN:
                {
                    e=expression();
                    if (0==inputState.guessing)
                    {
                        ec.Add(e);
                    }
                    {    // ( ... )*
                        for (;;)
                        {
                            if ((LA(1)==COMMA))
                            {
                                match(COMMA);
                                e=expression();
                                if (0==inputState.guessing)
                                {
                                    if (e != null) ec.Add(e);
                                }
                            }
                            else
                            {
                                goto _loop651_breakloop;
                            }

                        }
            _loop651_breakloop:						;
                    }    // ( ... )*
                    break;
                }
                case EOL:
                case IF:
                case UNLESS:
                case WHILE:
                case EOS:
                case RPAREN:
                case COLON:
                case RBRACE:
                case QQ_END:
                {
                    break;
                }
                default:
                {
                    throw new NoViableAltException(LT(1), getFilename());
                }
                 }
            }
            }
            catch (RecognitionException ex)
            {
            if (0 == inputState.guessing)
            {
                reportError(ex, "expression_list");
                recover(ex,tokenSet_29_);
            }
            else
            {
                throw ex;
            }
            }
        }
BooParserBase