From d138da32eb968e7d4b8d284a5cbef1af7e6507f6 Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 3 Sep 2016 11:58:04 +0900 Subject: [PATCH] =?UTF-8?q?=E5=8D=98=E9=A0=85=E6=BC=94=E7=AE=97=E5=AD=90?= =?UTF-8?q?=E3=82=92=E9=85=8D=E5=88=97=E3=81=AB=E4=BD=BF=E3=81=86=E3=81=A8?= =?UTF-8?q?=E3=81=86=E3=81=BE=E3=81=8F=E3=83=91=E3=83=BC=E3=82=B9=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SMILEBASIC/parser.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SMILEBASIC/parser.d b/SMILEBASIC/parser.d index 63be547..7c98aaf 100644 --- a/SMILEBASIC/parser.d +++ b/SMILEBASIC/parser.d @@ -1729,12 +1729,12 @@ class Parser //TODO:UnaryOperatorの実装 //とりあえず0-exprを作成 lex.popFront(); - node = new BinaryOperator(new Constant(Value(0), lex.location), TokenType.Minus, factor(), lex.location); + node = new BinaryOperator(new Constant(Value(0), lex.location), TokenType.Minus, term(2/*array*/, null), lex.location); return node; case TokenType.LogicalNot: case TokenType.Not: lex.popFront(); - node = new UnaryOperator(token.type, factor(), lex.location); + node = new UnaryOperator(token.type, term(2/*array*/, null), lex.location); return node; default: return node;