• Login or register

discuss.effbot.org

  • Popular
  • Recent
  • 1 point by Marcin Ciura 5 months ago on Simple Top-Down Parsing in Python 0 children

    It seems that a closing paren is indistinguishable from "(end)": test("1)") yields (literal 1). Similarly for brackets, braces, and commas. I'm not sure how to improve error detection in the parser.
    BTW, using ideas from this article, I've managed to write a regexp parser with postfix operators that wrap their arguments instead of modifying them.

    • parent
    • reply
  • Widget
  • Recent Comments
  • Leaders
Powered by