![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: Pointers on working with another language's syntaxby CountZero (Bishop) |
on Feb 17, 2003 at 19:58 UTC ( #236089=note: print w/replies, xml ) | Need Help?? |
Is that the language in which the text adventures of Zork et al. were written? Fond memories of long nights spend in solving them, come back. But for a solution of your problem: I would put the Inform code after a __DATA__ statement and then read the Inform code into a hash-structure (or more likely a hash of hashes of ... (just guessing as I don't know anything about the Inform language so the exact structure/grammar/rules are totally opaque to me) Your Perl-Inform parser/interpreter can then manipulate this data structure in the "usual" way. CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In Section
Seekers of Perl Wisdom
|
|