Ejemplo n.º 1
0
	public CompileUnitContext compileUnit() {
		CompileUnitContext _localctx = new CompileUnitContext(Context, State);
		EnterRule(_localctx, 0, RULE_compileUnit);
		try {
			EnterOuterAlt(_localctx, 1);
			{
			State = 2; Match(Eof);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			ErrorHandler.ReportError(this, re);
			ErrorHandler.Recover(this, re);
		}
		finally {
			ExitRule();
		}
		return _localctx;
	}
Ejemplo n.º 2
0
    public CompileUnitContext compileUnit()
    {
        CompileUnitContext _localctx = new CompileUnitContext(Context, State);

        EnterRule(_localctx, 8, RULE_compileUnit);
        try {
            EnterOuterAlt(_localctx, 1);
            {
                State = 23; Match(Eof);
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
Ejemplo n.º 3
0
    public CompileUnitContext compileUnit()
    {
        CompileUnitContext _localctx = new CompileUnitContext(_ctx, State);

        EnterRule(_localctx, 0, RULE_compileUnit);
        try {
            EnterOuterAlt(_localctx, 1);
            {
                State = 24;
                _errHandler.Sync(this);
                switch (Interpreter.AdaptivePredict(_input, 0, _ctx))
                {
                case 1:
                {
                    State = 22; density();
                }
                break;

                case 2:
                {
                    State = 23; probability();
                }
                break;
                }
                State = 26; Match(Eof);
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            _errHandler.ReportError(this, re);
            _errHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
Ejemplo n.º 4
0
        public CompileUnitContext compileUnit()
        {
            CompileUnitContext _localctx = new CompileUnitContext(_ctx, State);

            EnterRule(_localctx, 0, RULE_compileUnit);
            int _la;

            try {
                EnterOuterAlt(_localctx, 1);
                {
                    State = 27;
                    _errHandler.Sync(this);
                    _la = _input.La(1);
                    while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << IDENTIFIER) | (1L << ARRAY_SYM) | (1L << COLON_SYM))) != 0))
                    {
                        {
                            {
                                State = 24; block();
                            }
                        }
                        State = 29;
                        _errHandler.Sync(this);
                        _la = _input.La(1);
                    }
                    State = 30; Match(Eof);
                }
            }
            catch (RecognitionException re) {
                _localctx.exception = re;
                _errHandler.ReportError(this, re);
                _errHandler.Recover(this, re);
            }
            finally {
                ExitRule();
            }
            return(_localctx);
        }
Ejemplo n.º 5
0
    public CompileUnitContext compileUnit()
    {
        CompileUnitContext _localctx = new CompileUnitContext(Context, State);

        EnterRule(_localctx, 0, RULE_compileUnit);
        int _la;

        try {
            _localctx = new FileContext(_localctx);
            EnterOuterAlt(_localctx, 1);
            {
                State = 8; Match(T__0);
                State = 9; Match(T__1);
                State = 10; Match(T__2);
                State = 11; Match(ID);
                State = 12; Match(T__0);
                State = 13; Match(T__3);
                State = 14; Match(T__2);
                State = 15; Match(ID);
                State = 16; Match(T__0);
                State = 17; Match(T__4);
                State = 18; Match(T__2);
                State = 19; Match(ID);
                State = 24;
                ErrorHandler.Sync(this);
                _la = TokenStream.LA(1);
                if (_la == T__0)
                {
                    {
                        State = 20; Match(T__0);
                        State = 21; Match(T__5);
                        State = 22; Match(T__2);
                        State = 23; Match(ID);
                    }
                }

                State = 27;
                ErrorHandler.Sync(this);
                _la = TokenStream.LA(1);
                do
                {
                    {
                        {
                            State = 26; fuzzy_rule();
                        }
                    }
                    State = 29;
                    ErrorHandler.Sync(this);
                    _la = TokenStream.LA(1);
                } while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__9) | (1L << T__13) | (1L << ID))) != 0));
                State = 31; Match(Eof);
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
Ejemplo n.º 6
0
 public FileContext(CompileUnitContext context)
 {
     CopyFrom(context);
 }
Ejemplo n.º 7
0
 public virtual void CopyFrom(CompileUnitContext context)
 {
     base.CopyFrom(context);
 }