HI all
I'm trying to create a list of any characters but trailing whitespaces
separated by comma's.
Here are the rules for a specific case where I need this kind of list:
authors
: (auth+=(.*)) WS* (',' WS* auth+=(.*) WS*)
-> ^(AGAUTHORS $auth)
;
WS : ( ' '
| '\t'
| '\r'
| '\n'
)
;
Input: Ben Corne , An antlr FAN
Parse tree should look like this:
authors
|------------ 'Ben Corne'
|------------ WS
|------------ ','
|------------ WS
|------------ 'An antlr FAN'
Instead I get one that doesn't seem to gather any character but the ','
(tested in debugger)
Anyone know what I'm doing wrong here?
Kind regards
Ben Corne
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.