From d7f4ae08880a5a0cf1175caa1aa51ada3b0089d5 Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 24 Dec 2016 13:32:52 +0900 Subject: [PATCH] Fix omitted argument parsing --- SMILEBASIC/parser.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SMILEBASIC/parser.d b/SMILEBASIC/parser.d index c0fafc3..3227e9e 100644 --- a/SMILEBASIC/parser.d +++ b/SMILEBASIC/parser.d @@ -951,6 +951,8 @@ class Parser func.addArg(new VoidExpression(lex.location)); lex.popFront(); token = lex.front(); + if (token.type != TokenType.Comma) + func.addArg(new VoidExpression(lex.location)); } else {