MarkT:
Ad-hoc parsing isn't that difficult in practice and is a lot more flexible that regexps. Just use a function per
per type of syntactic entity and hope a singel character lookahead.
By "function per type of syntactic entity", I guess you mean a function for each of the commands?
I'm not sure what you mean by "hope a singel character lookahead".
I know what 'single character lookahead' is but what does "hope" mean?
Ray