1
0

IMplement STOP

This commit is contained in:
otya128
2017-07-04 20:28:49 +09:00
parent e5e784a9da
commit bb586dbb55
6 changed files with 31 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ class Lexical
reserved["UNTIL"] = TokenType.Until;
reserved["SWAP"] = TokenType.Swap;
reserved["LINPUT"] = TokenType.Linput;
reserved["STOP"] = TokenType.Stop;
reserved.rehash();
}
this(wstring input)
@@ -1144,6 +1145,9 @@ class Parser
return swapStatement();
case TokenType.Linput:
return linputStatement();
case TokenType.Stop:
node = new StopStatement(lex.location);
break;
default:
syntaxError();
break;