jamiebuilds_the-super-tiny-.../README.md

46 lines
1.4 KiB
Markdown
Raw Normal View History

2016-12-31 21:23:56 +00:00
[![The Super Tiny Compiler](https://cloud.githubusercontent.com/assets/952783/21579290/5755288a-cf75-11e6-90e0-029529a44a38.png)](the-super-tiny-compiler.js)
2016-08-25 01:35:32 +00:00
***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.
2016-12-31 20:31:43 +00:00
### [Want to jump into the code? Click here](the-super-tiny-compiler.js)
2016-08-25 01:35:32 +00:00
2017-04-13 21:07:03 +00:00
### [You can also check it out on Glitch](https://the-super-tiny-compiler.glitch.me/)
2016-08-25 01:35:32 +00:00
---
### 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?
2016-12-31 20:31:43 +00:00
Awesome! Head on over to the [the-super-tiny-compiler.js](the-super-tiny-compiler.js)
2016-08-25 01:35:32 +00:00
file.
### I'm back, that didn't make sense
2019-06-22 02:02:05 +00:00
Ouch, I'm really sorry. Let me know how it can be improved.
2016-08-25 01:35:32 +00:00
### Tests
Run with `node test.js`
---
[![cc-by-4.0](https://licensebuttons.net/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)