From 706bb3715d1cd12899e6833f51ff187f99e1feb9 Mon Sep 17 00:00:00 2001 From: otya128 Date: Thu, 29 Dec 2016 17:25:05 +0900 Subject: [PATCH] Fix var parser --- SMILEBASIC/parser.d | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SMILEBASIC/parser.d b/SMILEBASIC/parser.d index 1e681a4..1e21e5a 100644 --- a/SMILEBASIC/parser.d +++ b/SMILEBASIC/parser.d @@ -1413,7 +1413,6 @@ class Parser token = lex.front(); if(token.type != TokenType.Iden) { - //TODO:VAR("A")の実装 syntaxError(); return null; } @@ -1432,6 +1431,11 @@ class Parser if(token.type == TokenType.Comma) { lex.popFront(); + //VAR A,B,=>error出ない + if(lex.front.type != TokenType.Iden) + { + break; + } } else {