|PCCTS, multiple ANTLR calls firstname.lastname@example.org (1993-08-11)|
|Re: PCCTS, multiple ANTLR calls email@example.com (Terence Parr) (1993-08-15)|
|Keywords:||PCCTS, question, comment|
|Date:||Wed, 11 Aug 1993 15:16:29 GMT|
I'm trying to use PCCTS as a parser within a larger program from
which I need to call the ANTLR macro several times.
The parser works fine for the first call, but all subsequent calls with
the same data result in parse errors. I suspect that the zzEXIT macro is
freeing up resources needed for ANTLR calls.
Is there a way call ANTLR multiple times within an executable?
If not does anyone have suggestions for a EBNF parser, like PCCTS, that
allows for multiple calls. Another feature I need is the ability to load
multiple, independently generated parsers. Most parser, other than Bison,
do not allow this.
[There are some fairly well-known hacks involving running a sed script on the
output of yacc, that people use to include multiple yacc parsers. -John]
Return to the
Search the comp.compilers archives again.