1
0

VAR name=exprを実装

This commit is contained in:
otya128
2016-08-31 17:04:50 +09:00
parent e9c94f5bbd
commit 9b0d7c0a8c
2 changed files with 4 additions and 1 deletions

View File

@@ -202,6 +202,7 @@ class Lexical
if(c == '"' || c == '\r' || c == '\n')//"を閉じない文も許容
{
i++;
if (c == '\r' || c == '\n') i--;
break;
}
str ~= c;
@@ -1272,7 +1273,7 @@ class Parser
else
{
//VAR iden=expr
if(token.type == TokenType.Equal)
if(token.type == TokenType.Assign)
{
lex.popFront();
expr = expression();