[antlr-interest] structure parameter access
silverio.di at qem.it
silverio.di at qem.it
Wed Nov 10 04:35:23 PST 2004
"Alexey Demakov" <demakov at ispras.ru> wrote:
>Because parser doesn't know about skipped tokens the only way to
>skip WS and forbid WS near POINT - is to handle
struct_name.struct_parameter
>as single token in lexer.
>Another idea - the only idea - is to track WS while skipping and decorate
>POINT token by flag indicating that there was WS just before or after.
>You can check it in parser rule and print error message.
Ok, I can write:
STRUCT_PARAMETER
: IDENT
'.'
IDENT
;
but in parser how can I extract from STRUCT_PARAMETER token
the structure name and the parameter name ?
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list