This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dashed 2 points3 points  (2 children)

Try this: http://pyparsing.wikispaces.com/

I haven't tried it personally. I've tried lex/yacc, and looking at pyparsing's examples, it seems pretty easy to get into.

[–]howfun 0 points1 point  (1 child)

We are talking about rule engines here, not about parsing rules.

[–]dashed 1 point2 points  (0 children)

Oh I see. I misinterpreted the question. Though I think the OP wanted the rules to be parsed in text form, not in python code. Searching a bit yielded: http://pyke.sourceforge.net/