多次元配列実装途中
This commit is contained in:
@@ -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, " ");
|
||||
|
||||
Reference in New Issue
Block a user