Tree
- Tree:
a736d9c489eb9a8e5da1c14fee529e45706f5a29- Date:
- Message:
- Add expression parser with operator precedence Recursive-descent parser for expressions with proper precedence: equality > comparison > addition > multiplication > unary > call > primary. Supports literals, binary/unary ops, function calls, and parenthesized grouping.
| .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).
