(Ofcourse, since mIRC script has evolved with this parser, it's grammar is now sadly non context free and not very ammendable to standard parsing techniques. So, while it could probably be enhanced by using a real tool, such a tool can not fix the underlying difficulty that the language is ambigious. C and Perl suffers from similar problems, they are also hard to parse, although much (much) more regular than mIRC script.)