V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
sssooonnnggg
V2EX  ›  Rust

用 Rust 写了一个 Lua 的 Parser,欢迎提 bug~

  •  
  •   sssooonnnggg · Jun 1, 2020 · 3614 views
    This topic created in 2167 days ago, the information mentioned may be changed or developed.
    https://github.com/sssooonnnggg/rslua

    包含 lexer 、parser 、ast walker 。

    可以用它来实现一些语法分析或语言转译功能,比如 lua to javascript,lua to typescript 等等。

    写这个项目主要用来一方面加深对 lua 源码的理解,一方面也熟悉一下 rust 的开发流程。总体来说,用 rust 写代码感觉还是比 c/c++爽一点的。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3295 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 12:47 · PVG 20:47 · LAX 05:47 · JFK 08:47
    ♥ Do have faith in what you're doing.