[css3-syntax] Parser rewritten as recursive-descent, review requested

Per discussion at the last f2f, I've rewritten the parser section of
Syntax to be a recursive-descent parser instead of a state machine.

It surprised me just how much simpler this strategy made it, as nearly
all error-handling is now automatic in the structure of the parser and
much more intuitive.  The parser itself is much shorter and easier to
read now, too.  Finally, the parser entry points now work *correctly*
- they were subtly wrong when I tried to just hack them on top of the
state machine.

Please review and let me know if anything looks wrong.

~TJ

Received on Tuesday, 12 February 2013 20:42:21 UTC