Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
1796a2f8
Commit
1796a2f8
authored
Jul 01, 2013
by
Daniel Ratiu
Browse files
changed the grammar to allow more complex expressions in array constants
refs 1323
parent
46c5e516
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.expression/trunk/grammar/AF3Expression.g
View file @
1796a2f8
...
...
@@ -192,8 +192,8 @@ structConstTerm returns [IExpressionTerm result]
arrayConstTerm
returns
[
IExpressionTerm
result
]
:
{$
result
=
ArrayConstStaticImpl
.
create
();}
'['
(
term1
=
funcallT
erm
{((
ArrayConst
)$
result
).
getValuesList
().
add
($
term1
.
result
);
})
(
','
term2
=
funcallT
erm
{((
ArrayConst
)$
result
).
getValuesList
().
add
($
term2
.
result
);
})*
(
term1
=
t
erm
{((
ArrayConst
)$
result
).
getValuesList
().
add
($
term1
.
result
);
})
(
','
term2
=
t
erm
{((
ArrayConst
)$
result
).
getValuesList
().
add
($
term2
.
result
);
})*
']'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment