<i>A parser implemented in a scripting language</i><p>What's a "scripting language"?<p><i>Won't that be rather slow?</i><p>Firefox is implemented in JavaScript.  It's pretty fast, and a little more complicated than a parser.