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)
- Host: GitHub
- URL: https://github.com/bafs/the-super-tiny-compiler-php
- Owner: BafS
- License: cc-by-4.0
- Created: 2016-03-31T21:28:55.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-31T21:29:02.000Z (about 10 years ago)
- Last Synced: 2025-01-14T02:35:08.916Z (over 1 year ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
***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";
}
```
---
[](http://creativecommons.org/licenses/by/4.0/)
