Hi,
I have a quite large file (~200MB) which is in a certain language. I have the BNF of this language and would like to parse it to another language. I tried using Parse::Recdescent for this, but it is VERY slow as it parses everytime the whole file, tries to match a rule and if it doesn't match it parses the whole file to match another rule. Doing so, it gets very painful after some time and usually the program quits after a while being out of memory.
Is there any better way to do so? I really like to use perl for this purpose and use a real parser.
Thanks,
Amir