One of the main difficulties I've had using parser generators has been the difficulty of figuring out why a grammar didn't work. Fixing shift-reduce and reduce-reduce conflicts seemed like voodoo to me, and though I slightly understand better how to fix such things now it's still a different mode of thinking that I don't want to try to get into when I just want to parse something simple. PyMeta uses a variation on the Parsing Expression Grammar (PEG) approach to parsing. The chief consequence of this is there's no possibility of ambiguity in a parse: a successful parse will yield exactly one result, and you can trace the control flow through the grammar to figure out how it got there.
Group items matching
in title, tags, annotations or urlAllen's Weblog: More Than Just Parsers - 0 views
Allen's Weblog: PyMeta: How and Why - 0 views
How to Write a Spelling Corrector - 0 views
cpython : Lib/HTMLParser.py - 0 views
-
Mercurial > cpython view Lib/HTMLParser.py @ 89979:3f8b801e7e76
1 - 7 of 7
Showing 20▼ items per page