|Link to compiler? email@example.com (Lorenzo Villari) (2002-12-07)|
|From:||"Lorenzo Villari" <firstname.lastname@example.org>|
|Date:||7 Dec 2002 20:04:38 -0500|
|Posted-Date:||07 Dec 2002 20:04:38 EST|
I'm doing experiments with an interpreter in C with Bison and Flex .
It parses external files ok (opening them), but the problem is
that I would like, the C compiler would call the parser
when it encounters the "alien" words, allowing me to use them
inside a normal C source, instead of complaining that they aren't correct!
How this could done?
[Write a preprocessor that reads files with your language and C intermixed,
translate your stuff into the equivalent C, usually a bunch of procedure
calls, and give the resulting C code to the C compiler. -John]
Return to the
Search the comp.compilers archives again.