From 92ebf9321e1dff98ed4a6c5e3be0a51b4d95727c Mon Sep 17 00:00:00 2001 From: Victor Date: Thu, 16 Apr 2015 00:07:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D1=91=D0=BD=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=D0=BE=D1=80=D0=B8=D1=82=D0=B5=D1=82=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=BF=D0=B0=D1=80=D1=81=D0=B8=D0=BD=D0=B3=D0=B5?= =?UTF-8?q?=20=D0=B2=D1=8B=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B9=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=D1=81=D0=B2=D0=B0=D0=B8=D0=B2=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/annimon/everlastingsummer/Parser.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/com/annimon/everlastingsummer/Parser.java b/src/com/annimon/everlastingsummer/Parser.java index bcc967d..87ed8f9 100644 --- a/src/com/annimon/everlastingsummer/Parser.java +++ b/src/com/annimon/everlastingsummer/Parser.java @@ -206,14 +206,6 @@ public final class Parser { private boolean command() { final Token token = get(0); - if (match(token, TokenType.WORD)) { - if (match(TokenType.EQ)) { - // variable = expression - Variables.setVariable(token.getText(), expression().eval()); - return false; - } - } - if (match(token, TokenType.RENPY_PAUSE)) { consume(TokenType.LPAREN); final double pause = consumeDouble(); @@ -237,6 +229,14 @@ public final class Parser { return false; } + if (match(token, TokenType.WORD)) { + if (match(TokenType.EQ)) { + // variable = expression + Variables.setVariable(token.getText(), expression().eval()); + return false; + } + } + return false; }