home *** CD-ROM | disk | FTP | other *** search
- Basically, the skeleton.c file was modified to allow the following:
-
- #define YYLEX [self getToken:stream]
- #define YYPARSE - (int)parse:(FILE*)stream
- #define yyerror(_msg) [self warn:_msg];
-
- Make sure these defs appear before your grammar. In the pre-grammar code
- one also needs to include the "@implementatin Foo", etc.
-
- Code following the grammar (ending "%%") now really follows the parse
- imlementation.
-
- I use the following make rule:
-
- .my.m:
- cyacc -d -o -x .m -b $* $*.my
-
- New Options
- -----------
- x uses the next argument as the file extensions (default .c)
- o causes PRIVATE to be defined as "static" thus making the tables and such
- local to the module.
-
- The real curious can look at the modifications using rcsdiff on suspect
- files. (skeleton.c main.c output.cm defs.h)
-
- Sorry about the scant documentation.
-
- Please send questions to jjobe@mrj.com.
- Will try to get out an example soon.
-
- Enjoy,
- Jason
-