Ejemplo n.º 1
0
    public RotateContext rotate()
    {
        RotateContext _localctx = new RotateContext(Context, State);

        EnterRule(_localctx, 6, RULE_rotate);
        try {
            EnterOuterAlt(_localctx, 1);
            {
                State = 24; Match(ROT);
                State = 25; _localctx._VAL = Match(VAL);
                Compiler.AddRotateCommand((_localctx._VAL != null?_localctx._VAL.Text:null));
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
Ejemplo n.º 2
0
	public RotateContext rotate() {
		RotateContext _localctx = new RotateContext(Context, State);
		EnterRule(_localctx, 6, RULE_rotate);
		try {
			EnterOuterAlt(_localctx, 1);
			{
			State = 24; Match(ROT);
			State = 25; _localctx._VAL = Match(VAL);
			 Compiler.AddRotateCommand((_localctx._VAL!=null?_localctx._VAL.Text:null)); 
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			ErrorHandler.ReportError(this, re);
			ErrorHandler.Recover(this, re);
		}
		finally {
			ExitRule();
		}
		return _localctx;
	}