Tree
- Tree:
1a09b28765f736822e931a9fb71bd3e4a281e918- Date:
- Message:
- Add bytecode compiler and stack-based VM Compile AST to bytecode with opcodes for constants, arithmetic, print, and return. Stack-based VM with dispatch loop executes bytecode. First programs running end-to-end: source -> lexer -> parser -> compiler -> VM -> output.
| .gitignore | commits | blame |
| .rustfmt.toml | commits | blame |
| Cargo.lock | commits | blame |
| Cargo.toml | commits | blame |
| LICENSE | commits | blame |
| Makefile | commits | blame |
| PLAN.md | commits | blame |
| README.md | commits | blame |
| src/ | |
README.md
# olang
Olivia Lang
````
fn main() {
let x = 42
let mut name: str = "world"
if x > 10 {
print("hello " + name)
}
for i in range(10) {
print(i)
}
let num = add(x, 1)
print(num)
}
fn add(a: int, b: int) -> int {
a + b
}
```
## License
ISC — see [LICENSE](LICENSE).
