• 请不要在回答技术问题时复制粘贴 AI 生成的内容
abersheeran
V2EX  ›  程序员

Guido 写的新 Parser 真的很好用

  •  
  •   abersheeran · Aug 26, 2021 · 2666 views
    This topic created in 1745 days ago, the information mentioned may be changed or developed.

    之前我搞了个 Python 超集,用的方式是字符串替换,很垃圾。然后我复习了一下编译原理,用 Guido 为 Python3.9 之后的版本写的 Parser 整了个新版本。

    几乎没有额外的代码,只需要修改一下 gram 文件,就可以增加新的语法编译到 Python AST 对象。

    https://github.com/abersheeran/mingshe

    1 replies    2021-08-26 22:55:03 +08:00
    vngghgfjnff
        1
    vngghgfjnff  
       Aug 26, 2021
    git 里面下载下来怎么用能说下吗,小白
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1008 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:12 · PVG 07:12 · LAX 16:12 · JFK 19:12
    ♥ Do have faith in what you're doing.