If you're creating Perl code in your parser, why do you worry about non-Perl languages?
If you need to have a non-static but singular object, maybe you want to implement the Singleton pattern in your language of choice. Or maybe you want to provide the target container using Dependency Injection.
Or maybe you can help us help you better by telling us more about your overarching goal. I have the impression that you try to achieve many things from a single and oddly specific approach, and that approach seems to be a bad fit for the solutions you try to get from it.
In reply to Re^5: Parse grammar via RecDescent parser
by Corion
in thread Parse grammar via RecDescent parser
by the_dark_lord
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |