Beispiel #1
0
        public RowContext row()
        {
            RowContext _localctx = new RowContext(Context, State);

            EnterRule(_localctx, 2, RULE_row);
            Int32 _la;

            try {
                EnterOuterAlt(_localctx, 1);
                {
                    {
                        State = 12; _localctx.Fields = field();
                        State = 17;
                        ErrorHandler.Sync(this);
                        _la = TokenStream.La(1);
                        while (_la == COMMA)
                        {
                            {
                                {
                                    State = 13; _localctx.Comma = Match(COMMA);
                                    State = 14; _localctx.Fields = field();
                                }
                            }
                            State = 19;
                            ErrorHandler.Sync(this);
                            _la = TokenStream.La(1);
                        }
                    }
                    State = 21;
                    _la   = TokenStream.La(1);
                    if (_la == T__0)
                    {
                        {
                            State = 20; Match(T__0);
                        }
                    }

                    State = 23; Match(T__1);
                }
            }
            catch (RecognitionException re) {
                _localctx.exception = re;
                ErrorHandler.ReportError(this, re);
                ErrorHandler.Recover(this, re);
            }
            finally {
                ExitRule();
            }
            return(_localctx);
        }
Beispiel #2
0
        public RowContext row()
        {
            RowContext _localctx = new RowContext(_ctx, State);

            EnterRule(_localctx, 2, RULE_row);
            int _la;

            try {
                EnterOuterAlt(_localctx, 1);
                {
                    State = 11; field();
                    State = 16;
                    _errHandler.Sync(this);
                    _la = _input.La(1);
                    while (_la == T__0)
                    {
                        {
                            {
                                State = 12; Match(T__0);
                                State = 13; field();
                            }
                        }
                        State = 18;
                        _errHandler.Sync(this);
                        _la = _input.La(1);
                    }
                    State = 20;
                    _errHandler.Sync(this);
                    _la = _input.La(1);
                    if (_la == T__1)
                    {
                        {
                            State = 19; Match(T__1);
                        }
                    }

                    State = 22; Match(T__2);
                }
            }
            catch (RecognitionException re) {
                _localctx.exception = re;
                _errHandler.ReportError(this, re);
                _errHandler.Recover(this, re);
            }
            finally {
                ExitRule();
            }
            return(_localctx);
        }
Beispiel #3
0
    public RowContext row()
    {
        RowContext _localctx = new RowContext(Context, State);

        EnterRule(_localctx, 4, RULE_row);
        int _la;

        try {
            EnterOuterAlt(_localctx, 1);
            {
                State = 16; field();
                State = 21;
                ErrorHandler.Sync(this);
                _la = TokenStream.LA(1);
                while (_la == T__0)
                {
                    {
                        {
                            State = 17; Match(T__0);
                            State = 18; field();
                        }
                    }
                    State = 23;
                    ErrorHandler.Sync(this);
                    _la = TokenStream.LA(1);
                }
                State = 25;
                ErrorHandler.Sync(this);
                _la = TokenStream.LA(1);
                if (_la == T__1)
                {
                    {
                        State = 24; Match(T__1);
                    }
                }

                State = 27; Match(T__2);
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
        public RowContext row()
        {
            RowContext _localctx = new RowContext(_ctx, State);

            EnterRule(_localctx, 2, RULE_row);
            int _la;

            try {
                EnterOuterAlt(_localctx, 1);
                {
                    State = 13;
                    _errHandler.Sync(this);
                    _la = _input.La(1);
                    do
                    {
                        {
                            {
                                State = 11; _localctx._STUFF = Match(STUFF);

                                _localctx.i++;
                                if (col.Contains(_localctx.i))
                                {
                                    Console.Write((_localctx._STUFF != null?_localctx._STUFF.Text:null));
                                }
                            }
                        }
                        State = 15;
                        _errHandler.Sync(this);
                        _la = _input.La(1);
                    } while (_la == STUFF);
                }
            }
            catch (RecognitionException re) {
                _localctx.exception = re;
                _errHandler.ReportError(this, re);
                _errHandler.Recover(this, re);
            }
            finally {
                ExitRule();
            }
            return(_localctx);
        }
Beispiel #5
0
 public RowsController(RowContext context)
 {
     _context = context;
 }