| Lists and Attributes without order [message #881345]
||Mon, 04 June 2012 11:30
Registered: May 2012
Can anyone help me with the following grammar. We need to be able to allow|
lists and unique values (attributes) mixed up, without any order, so I defined
the following grammar. (It is just an example, but I need it in a very similar case)
(size = Size) &
(elevation = Elevation)? &
(inhabitant += (Adult | Child)+
'ELEVATION' elevation=INT 'm';
Actually this definition, doesn't allow the following syntax. The CHILD Ana Belen wouldn't be allowed, as ELEVATION is coming after ADULT.
ADULT "Mariano Rajoy"
CHILD "Ana Belen"
Anyone can knows, how I could improve the grammar.
I would need some grammar definition like this, but actually it is not supported.
description=(Size | Evelation? | Adult* | Child*)
Is there a workaround? Thanks a lot in advance.
[Updated on: Mon, 04 June 2012 12:01]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02044 seconds