Code Monkey home page Code Monkey logo

the-super-tiny-compiler-cn's Introduction

THE SUPER TINY COMPILER

Welcome to The Super Tiny Compiler!

这是一个超级简单的编译器的例子,包含了现代编译器的几个主要部分,用简单易读的 JavaScript 编写。

把这个读完将会有助于你了解大多数编译器从前端到后端是如何工作的。

或者... 看看演讲


为啥我要关心这个?

确实,大多数人在日常工作中没有必要了解编译器都是如何工作的。但是,编译器无处不在,你使用的很多 工具的底层原理都是从编译器那儿来的。

但是编译器太高大上了!

额,确实。但这是我们(写编译器的人)的过错,我们把一些本应该很通俗易懂的事情弄得太可怕了, 让很多人都认为编译器这种东西是可望而不可即的,甚至只有最书呆子的书呆子才能理解。

好吧,所以我该从哪儿开始?

太棒了!直接去看 super-tiny-compiler-chinese.js 这个文件吧!

Tests

直接运行 node test.js


cc-by-4.0

the-super-tiny-compiler-cn's People

Contributors

jamiebuilds avatar sarbbottam avatar starkwang avatar adarsh-why avatar acdlite avatar benlesh avatar danielcnorris avatar gillescastel avatar hzoo avatar rukai avatar vishaltelangre avatar miltonsegura avatar nippur72 avatar woota avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.