V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
abersheeran
V2EX  ›  程序员

Guido 写的新 Parser 真的很好用

  •  
  •   abersheeran · Aug 26, 2021 · 2561 views
    This topic created in 1710 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   ·   754 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:57 · PVG 04:57 · LAX 13:57 · JFK 16:57
    ♥ Do have faith in what you're doing.