When I call my parser with -> EXT.MyFunc()
The value returned by $EXTERNAL_CALL.getText() is 'EXT.MyFunc' where I
would expect to have only 'MyFunc' (because I'm using the '!' operator
in the lexer here below).
fragment INT : ('0'..'9');
fragment ALPHA : ('a'..'z'|'A'..'Z'|'_');
fragment ID : ALPHA (ALPHA | INT)*;
EXTERNAL_CALL: 'EXT.'! ID;
rule: EXTERNAL_CALL '(' { stack.push(new
FuncName($EXTERNAL_CALL.getText())); } (expressList { ... } )? ')'
expressList: ...;
Any idea why the '!' operator looks like not working ? What am I doing
wrong ?
Thank you.
Philippe Frankson
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.