From 10eb0803fea5ecf8c94e8a7e97f1e72fea3edde0 Mon Sep 17 00:00:00 2001 From: otya128 Date: Thu, 15 Dec 2016 17:26:15 +0900 Subject: [PATCH] Fix GOSUB/GOTO EXPR$ parsing --- SMILEBASIC/parser.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SMILEBASIC/parser.d b/SMILEBASIC/parser.d index bd3e8f9..abd32ac 100644 --- a/SMILEBASIC/parser.d +++ b/SMILEBASIC/parser.d @@ -1006,6 +1006,7 @@ class Parser if(!e) syntaxError(); node = new Goto(e, lex.location); + return node; } break; case TokenType.Gosub: @@ -1019,6 +1020,7 @@ class Parser if(!e) syntaxError(); node = new Gosub(e, lex.location); + return node; } break; case TokenType.If: