vlasovskikh / funcparserlib

Recursive descent parsing library for Python based on functional combinators
https://funcparserlib.pirx.ru
MIT License
345 stars 38 forks source link

Prevent passing a universally successful parser to the many combinator #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Several people have reported that they wrote parsers that ran forever
entering an infinite loop. The problem is documented in FAQ [1].

Find some way to prevent passing this in runtime (by raising an
exception?), i. e. prevent passing a (standard?) universally successful
parser to the `many` combinator.

  [1]: http://archlinux.folding-maps.org/2009/funcparserlib/FAQ

Original issue reported on code.google.com by andrey.vlasovskikh on 6 Oct 2009 at 8:45

GoogleCodeExporter commented 9 years ago

Original comment by andrey.vlasovskikh on 6 Oct 2009 at 9:03

GoogleCodeExporter commented 9 years ago

Original comment by andrey.vlasovskikh on 8 Oct 2009 at 12:55

GoogleCodeExporter commented 9 years ago
Fixed in [6607047796][1].

  [1]:
http://code.google.com/p/funcparserlib/source/detail?r=6607047796a8329ddcd703cac
f937d2172e02c50

Original comment by andrey.vlasovskikh on 13 Oct 2009 at 5:07

GoogleCodeExporter commented 9 years ago

Original comment by andrey.vlasovskikh on 26 May 2011 at 10:42