Commit 1796a2f8 authored by Daniel Ratiu's avatar Daniel Ratiu
Browse files

changed the grammar to allow more complex expressions in array constants

refs 1323
parent 46c5e516
...@@ -192,8 +192,8 @@ structConstTerm returns [IExpressionTerm result] ...@@ -192,8 +192,8 @@ structConstTerm returns [IExpressionTerm result]
arrayConstTerm returns [IExpressionTerm result] : arrayConstTerm returns [IExpressionTerm result] :
{$result = ArrayConstStaticImpl.create();} {$result = ArrayConstStaticImpl.create();}
'[' '['
(term1=funcallTerm {((ArrayConst)$result).getValuesList().add($term1.result); }) (term1=term {((ArrayConst)$result).getValuesList().add($term1.result); })
(',' term2=funcallTerm {((ArrayConst)$result).getValuesList().add($term2.result); })* (',' term2=term {((ArrayConst)$result).getValuesList().add($term2.result); })*
']'; ']';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment