This implements a full compiler, with both static compilation and JIT support, for the world's simplest and silliest programming language. You can do math, and print variables. That's it. On the bright side, it implements every part of the compiler, from the lexer and parser; through analysis and simplification; and into a reasonable code generator. This should be a good jumping off point for adding more advanced features. Tests, including proptests, are included to help avoid regressions.
8 lines
118 B
Rust
8 lines
118 B
Rust
struct BackendObject {
|
|
}
|
|
|
|
impl BackendObject {
|
|
pub fn new() -> Result<Self, ()> {
|
|
unimplemented!()
|
|
}
|
|
} |