[antlr-interest] Multiple file parsing

Henrique hjrnunes at student.dei.uc.pt
Sun Oct 11 17:30:17 PDT 2009


Hi everyone.
I'm using ANTLR for parsing context-free grammars accepted for the program
Context Free Art.
I'm using the python runtime and what happens is while I'm parsing multiple
files, one after the other, it seems my data structures get not only the
content of the file currently being parsed but also everything else
previously parsed in previous files... I've looked it up and it seems to be
coming from the ANTLR generated code.
What could be causing this? What is the right way of ensuring contents don't
propagate between parsings? I'm closing the files after being parsed but
still it happens...

Henrique Nunes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091012/34eab078/attachment.html 


More information about the antlr-interest mailing list