<< /* parser.dlg -- DLG Description of scanner * * Generated from: t1.g * * Terence Parr, Will Cohen, and Hank Dietz: 1989-1999 * Purdue University Electrical Engineering * With AHPCRC, University of Minnesota * ANTLR Version 1.33MR22 */ #define ANTLR_VERSION 13322 #include "pcctscfg.h" #include "pccts_stdio.h" extern int numtokens; #include "antlr.h" #include "tokens.h" #include "dlgdef.h" LOOKAHEAD void #ifdef __USE_PROTOS zzerraction(void) #else zzerraction() #endif { (*zzerr)("invalid token"); zzadvance(); zzskip(); } >> %%START @ << NLA = ENDOFFILE; printf ( "Total tokens: %d\n", numtokens ); >> [\ \t]* << NLA = WS; >> ~[\ \t]* << NLA = ALLELSE; numtokens++; >> %%