eduardostuart / rust-the-super-tiny-compiler

A rust version of "the super tiny compiler"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).

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

cargo run --example tokens
cargo run --example ast
cargo run --example compiler

Test

cargo test

License

MIT

About

A rust version of "the super tiny compiler"

License:MIT License


Languages

Language:Rust 100.0%