Go to file
G. Kay Lee dee8b924ea Update the-super-tiny-compiler.js (#51)
Made some modifications to make the newly-added text fit into existing paragraphs.
2017-01-04 12:21:30 -05:00
LICENSE Init commit 2016-08-24 18:50:56 -07:00
package.json 1.0.0 2016-12-31 15:34:48 -05:00
README.md Update Image 2016-12-31 16:23:56 -05:00
test.js Prepare for greatness 2016-12-31 15:31:43 -05:00
the-super-tiny-compiler.js Update the-super-tiny-compiler.js (#51) 2017-01-04 12:21:30 -05:00

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


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. I'm planning on doing a lot more work on this to add inline annotations. If you want to come back when that's done, you can either watch/star this repo or follow me on twitter for updates.

Tests

Run with node test.js


cc-by-4.0