Esempio n. 1
0
        public Parameter_listContext parameter_list()
        {
            Parameter_listContext _localctx = new Parameter_listContext(Context, State);

            EnterRule(_localctx, 10, RULE_parameter_list);
            int _la;

            try {
                EnterOuterAlt(_localctx, 1);
                {
                    State = 53;
                    simple();
                    State = 58;
                    ErrorHandler.Sync(this);
                    _la = TokenStream.LA(1);
                    while (_la == COMMA)
                    {
                        {
                            {
                                State = 54;
                                Match(COMMA);
                                State = 55;
                                simple();
                            }
                        }
                        State = 60;
                        ErrorHandler.Sync(this);
                        _la = TokenStream.LA(1);
                    }
                }
            }
            catch (RecognitionException re) {
                _localctx.exception = re;
                ErrorHandler.ReportError(this, re);
                ErrorHandler.Recover(this, re);
            }
            finally {
                ExitRule();
            }
            return(_localctx);
        }
Esempio n. 2
0
	public Parameter_listContext parameter_list() {
		Parameter_listContext _localctx = new Parameter_listContext(_ctx, State);
		EnterRule(_localctx, 168, RULE_parameter_list);
		int _la;
		try {
			EnterOuterAlt(_localctx, 1);
			{
			State = 966; parameter_declaration_list();
			State = 969;
			_la = _input.La(1);
			if (_la==COMMA) {
				{
				State = 967; Match(COMMA);
				State = 968; Match(ELIPSIS);
				}
			}

			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.ReportError(this, re);
			_errHandler.Recover(this, re);
		}
		finally {
			ExitRule();
		}
		return _localctx;
	}