You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
System e910529c15
🚉💍 Updated with Glitch
7 years ago
public 🚉💍 Updated with Glitch 7 years ago
.gitignore Add .gitignore 7 years ago
0-introduction.md Original project from Glitch 7 years ago
1-tokenizer.js 🚉💍 Updated with Glitch 7 years ago
2-parser.js 🚉💍 Updated with Glitch 7 years ago
3-traverser.js 🚉💍 Updated with Glitch 7 years ago
4-transformer.js Original project from Glitch 7 years ago
5-code-generator.js Original project from Glitch 7 years ago
6-compiler.js Original project from Glitch 7 years ago
7-test.html 🚉💍 Updated with Glitch 7 years ago
LICENSE Original project from Glitch 7 years ago
README.md Original project from Glitch 7 years ago
content.ejs 🚉💍 Updated with Glitch 7 years ago
package.json 🚉💍 Updated with Glitch 7 years ago
server.js 🚉💍 Updated with Glitch 7 years ago
template.html.ejs 🚉💍 Updated with Glitch 7 years ago
test.js Original project from Glitch 7 years ago
title.ejs 🚉💍 Updated with Glitch 7 years ago
watch.json 🚉💍 Updated with Glitch 7 years ago

README.md

Welcome to The Super Tiny Compiler!

An @thejameskyle production


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.

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. These are really useful concepts to have at your disposal.

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.

I've done my best to try and keep this from being a scary experience. I hope that reading this will be a positive learning experience for you.

Okay so where do I begin?

Awesome! Head on over to 0-introduction.md and then work your way down the list of files.


cc-by-4.0