in reply to Pointers on working with another language's syntax

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.


"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law