Assuming all of your data is as clean looking as this example (ie: everything indented nicely, all questions exactly one line, etc..) then written a sequence of regexes to convert this to YAML -- or even directly to perl code -- should be pretty straight forward.
In reply to Re: Parsing a macro language
by hossman
in thread Parsing a macro language
by bluetrust
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |