https://github.com/eduardostuart/rust-the-super-tiny-compiler
A rust version of "the super tiny compiler"
https://github.com/eduardostuart/rust-the-super-tiny-compiler
compiler rust super-tiny-compiler
Last synced: over 1 year ago
JSON representation
A rust version of "the super tiny compiler"
- Host: GitHub
- URL: https://github.com/eduardostuart/rust-the-super-tiny-compiler
- Owner: eduardostuart
- License: mit
- Created: 2022-02-18T20:48:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-18T22:10:17.000Z (over 4 years ago)
- Last Synced: 2025-04-04T14:53:32.364Z (over 1 year ago)
- Topics: compiler, rust, super-tiny-compiler
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The (Rust) super tiny compiler
This project is a rust version of the super tiny compiler ([the original one (JS) was created by Jamie Kyle](https://github.com/jamiebuilds/the-super-tiny-compiler/blob/master/the-super-tiny-compiler.js)).
The output (C-like) and input (Lisp-like) syntax are the same. The Lexer and Parser created here were heavily inspired by the super-tiny-compiler.js.
## Examples
```sh
cargo run --example tokens
cargo run --example ast
cargo run --example compiler
```
## Test
```sh
cargo test
```
## License
[MIT](./LICENSE)