Skip to main content

Home/ Python Programming/ Group items tagged parser

Rss Feed Group items tagged

reckoner reckoner

Allen's Weblog: PyMeta: How and Why - 0 views

  • 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.
Jac Londe

cpython : Lib/HTMLParser.py - 0 views

  • Mercurial > cpython view Lib/HTMLParser.py @ 89979:3f8b801e7e76
  •  
    Testing parsing with ...
1 - 7 of 7
Showing 20 items per page