• Login or register

discuss.effbot.org

  • Popular
  • Recent
  • 1 point by ThomasH 1 year ago on Simple Top-Down Parsing in Python 1 child

    Excellent article - thank you very much! That was "the last straw" that got me going ...
    One thing that struck me: Both you and Crockford avoid introducing "," (comma) as an infix operator, to parse all kinds of lists as expressions, which would be very natural to me. Is there a general problem with doing so, or is it just a deliberate design decision?

    • parent
    • reply
    • 1 point by ThomasH 1 year ago 0 children

      I probably found the answer myself, it's overgeneration, right?! You lose control over substructures, like the ":" pairs in dicts, or the initializer part in C-style for-loops, if you allow to recurse in generic expression parsing.

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