From c0f1e4e9e559894fdf70b8a29e26eca669a6b4ab Mon Sep 17 00:00:00 2001 From: otya128 Date: Thu, 29 Dec 2016 17:33:40 +0900 Subject: [PATCH] Fix input --- SMILEBASIC/parser.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SMILEBASIC/parser.d b/SMILEBASIC/parser.d index 1e21e5a..8211609 100644 --- a/SMILEBASIC/parser.d +++ b/SMILEBASIC/parser.d @@ -1212,7 +1212,7 @@ class Parser } Input input = new Input(null, true, lex.location); input.addVariable(message); - do + while(token.type == TokenType.Comma) { lex.popFront(); auto expr = expression(); @@ -1222,7 +1222,7 @@ class Parser } input.addVariable(expr); token = lex.front(); - } while(token.type == TokenType.Comma); + } return input; }