[antlr-interest] implementing compiler directives

Tenaja tenajahiker at yahoo.com
Tue Mar 1 11:04:34 PST 2011


How do you implement compiler directives? Can anyone offer an example, or the 
page# in the book? 


I'd like to implement a "switch" (actually, an array of switches) that alters 
Antlrs output based on the switch value. For instance, switching TAB from 
whitespace into a token that can be used for termination.

Thanks.


      


More information about the antlr-interest mailing list