加入CODE CHINA

· 不限速    · 不限空间    · 不限人数    · 私仓免费

免费加入
    README.md

    The Super Tiny Compiler

    Welcome to The Super Tiny Compiler!

    This is an ultra-simplified example of all the major pieces of a modern compiler written in easy to read JavaScript.

    Reading through the guided code will help you learn about how most compilers work from end to end.

    Want to jump into the code? Click here

    You can also check it out on Glitch


    Why should I care?

    That's fair, most people don't really have to think about compilers in their day jobs. However, compilers are all around you, tons of the tools you use are based on concepts borrowed from compilers.

    But compilers are scary!

    Yes, they are. But that's our fault (the people who write compilers), we've taken something that is reasonably straightforward and made it so scary that most think of it as this totally unapproachable thing that only the nerdiest of the nerds are able to understand.

    Okay so where do I begin?

    Awesome! Head on over to the the-super-tiny-compiler.js file.

    I'm back, that didn't make sense

    Ouch, I'm really sorry. Let me know how it can be improved.

    Tests

    Run with node test.js


    cc-by-4.0

    项目简介

    🚀 Github 镜像仓库 🚀

    源项目地址

    https://github.com/jamiebuilds/the-super-tiny-compiler

    发行版本

    当前项目没有发行版本

    贡献者 6

    J Johnny Peck @Johnny Peck
    J Jamie Kyle @Jamie Kyle
    D Donald Pipowitch @Donald Pipowitch
    E Elliptica @Elliptica
    薛定谔的猫 @薛定谔的猫
    G G. Kay Lee @G. Kay Lee

    开发语言

    • JavaScript 100.0 %