Quote:
Originally Posted by Millenniumman
How do I call the parser from another file, rather than compile it into an executable?
|
Any stuff you're using either has to be linked together at compile time (or more correctly, at link time; this is the easy way, with direct access) or has to talk to another process during runtime (this is harder, as it then has to deal with the protocol of its communication mechanism, and it's slower; I don't know of any compilers that work this way, with the lexer and parser separate processes). Trust me, you want your parser to be linked into the overall binary.
(That is, if I understand your question correctly.
)