Resources for lexing, tokenising and parsing in python

后端 未结 8 2227
鱼传尺愫
鱼传尺愫 2020-12-04 06:41

Can people point me to resources on lexing, parsing and tokenising with Python?

I\'m doing a little hacking on an open source project (hotwire) and wanted to do a fe

8条回答
  •  有刺的猬
    2020-12-04 07:21

    Frederico Tomassetti had a good (but short) concise write-up to all things related from BNF to binary deciphering on:

    • lexical,
    • parser,
    • abstract-syntax tree (AST), and
    • Construct/code-generator.

    He even mentioned the new Parsing Expression Grammar (PEG).

    https://tomassetti.me/parsing-in-python/

提交回复
热议问题