|Adding types to a lex & yacc parser email@example.com (Thomas S. Strinnhed) (1999-04-30)|
|From:||"Thomas S. Strinnhed" <firstname.lastname@example.org>|
|Date:||30 Apr 1999 22:57:11 -0400|
|Organization:||ABB Robotics Products|
|Keywords:||lex, yacc, types, comment|
I'm building a parser i flex & bison (ont NT) for a simple language
which will be used to make function calls to compiled C-modules.
The thing is: All the C-modules are using different kind of datatypes,
structs and so on, and I want the parser to be able to somehow have
knowledge about these types - without recompiling the lex & yacc
output files. (As I'm using NT - could DLL-linking be the thing??)
Is this possible?? Any suggestions??
Thomas S. Strinnhed, email@example.com
[DLLs don't normally have the type info unless you keep all the debugging
symbols, but even then the debug stuff is nearly impossible to decode.
I'd suggest extending your language so you can describe the structures
that the code will be hooking into. -John]
Return to the
Search the comp.compilers archives again.