|
|
Re: my last problem with typing [message #627178 is a reply to message #626321] |
Wed, 22 September 2010 21:55 |
Benjamin Schwertfeger Messages: 53 Registered: July 2009 |
Member |
|
|
Hello Chuck,
I had a very similar problem in my grammar, because I needed to get a List of elements, like the dot-notation in Java. After each dot the context of the element before is relevant. Your grammar would allow to write the dots and the elements, but the context is not clear at each position. Additionally the position for scoping is not clear, because you can go back later and try to change the first reference, if all afterwards are present.
I used something like
CALL: ref=[Operation]
('('
arguments=ARGUMENTS?
')')
;
ARGUMENTS:
arguments=Argument( ',' ARGUMENTS)?
to parse the arguments with the scope provider.
If you like to go on with the list, you could take a look at the ProposalProvider to get the current position.
Hope this helps,
Benjamin
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03427 seconds