vlasovskikh / funcparserlib

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

Handle intrinsically circular grammars by parser-combinators decomposed to a set of modules. #40

Open magniff opened 8 years ago

magniff commented 8 years ago

In documentation you introduced an example of JSON parser, this format considered to be intrinsically circular on grammar level. So, what if my grammar has circular nature just like json`s one, but parsers spread to several modules, hence I have circular modules imports. Is there any built-in way to handle this?

vlasovskikh commented 8 years ago

I'm not sure it's a problem encountered by many funcparserlib users. I'll leave this open until we see more people requesting this feature.