An open API service indexing awesome lists of open source software.

https://github.com/bafs/the-super-tiny-compiler-php

:snowman: Possibly the smallest compiler ever (PHP version)
https://github.com/bafs/the-super-tiny-compiler-php

Last synced: about 1 month ago
JSON representation

:snowman: Possibly the smallest compiler ever (PHP version)

Awesome Lists containing this project

README

          

THE SUPER TINY COMPILER

***Welcome to The Super Tiny Compiler! (PHP version)***

**Disclamer** This is a port from Javascript to PHP of this project: [thejameskyle/the-super-tiny-compiler](https://github.com/thejameskyle/the-super-tiny-compiler).

This is an ultra-simplified example of all the major pieces of a modern compiler
written in easy to read PHP.

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](super-tiny-compiler.php)

To run the code:
```php
getMessage() . "\n";
}
```

---

[![cc-by-4.0](https://licensebuttons.net/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)