billkang / the-super-tiny-compiler

:snowman: Possibly the smallest compiler ever

Home Page:https://git.io/compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Super Tiny Compiler

欢迎来到 Super Tiny Compiler!

该项目使用易于阅读的 JavaScript 编写,用极度简单的方式展示了现代编译器的主要工作流程。

阅读指导代码,将会帮助你了解大多数编译器从头到尾的工作原理。

阅读源码? 点击这里

你也可以在 Glitch 上阅读相关资料


我为什么在意?

事实上,大部分开发人员在日常工作中是不需要关心编译器的。然而,编译器从没有远离你,你所使用的很多工具都借鉴了编译器的**。

但是编译器太恐怖了!

是的,他们太复杂了。但这是编译器开发者的错,让人以为理解编译器背后的原理是不可能完成的事,只有书呆子才能做到。

我们从那里开始呢?

关注该文件 the-super-tiny-compiler.js

Tests

运行 node test.js


cc-by-4.0

About

:snowman: Possibly the smallest compiler ever

https://git.io/compiler

License:Creative Commons Attribution 4.0 International


Languages

Language:JavaScript 100.0%