Parsing, where can I learn about it

前端 未结 12 708
鱼传尺愫
鱼传尺愫 2020-12-13 14:56

I\'ve been given a job of \'translating\' one language into another. The source is too flexible (complex) for a simple line by line approach with regex. Where can I go to le

12条回答
  •  情深已故
    2020-12-13 15:45

    I've recently been working with PLY which is an implementation of lex and yacc in Python. It's quite easy to get started with it and there are some simple examples in the documentation.

    Parsing can quickly become a very technical topic and you'll find that you probably won't need to know all the details of the parsing algorithm if you're using a parser builder like PLY.

提交回复
热议问题