1
0

多次元配列実装途中

This commit is contained in:
otya128
2015-06-12 21:46:43 +09:00
parent 9b9951e07e
commit 1e51bd37ca
5 changed files with 92 additions and 6 deletions

View File

@@ -868,13 +868,17 @@ class Parser
auto tt = token.type;
op.operator = token.type;
lex.popFront();
op.item2 = term(order - 1, node);
if(tt == TokenType.LBracket)
{
op.item2 = indexExpressions();
//[演算子
if(lex.front().type != TokenType.RBracket) syntaxError();
lex.popFront();
}
else
{
op.item2 = term(order - 1, node);
}
token = lex.front();
version(none)
write(tt, " ");