Hi Bastian,

  You may find these scripts useful. One creates a character array of all
the tokens, so you can index it with the token #define value to get the
string name. The second one post-processes the parser .c file to add a
rudimentary stack trace.  As Jim pointed out, you will need to move all
character strings from the parser rules to lexer rules or tokens in order to
get useful token names.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Attachment: insTree.pl
Description: Perl program


Attachment: parseTok.pl
Description: Perl program

-- 
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.

Reply via email to