https://github.com/zesterer/leon
A lightweight scripting language for Rust
https://github.com/zesterer/leon
Last synced: 2 months ago
JSON representation
A lightweight scripting language for Rust
- Host: GitHub
- URL: https://github.com/zesterer/leon
- Owner: zesterer
- Created: 2019-10-28T16:00:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-07T06:14:01.000Z (almost 6 years ago)
- Last Synced: 2025-04-11T16:23:32.166Z (9 months ago)
- Language: Rust
- Homepage:
- Size: 87.9 KB
- Stars: 20
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Leon
Leon is a reimagining of [Forge](https://www.github.com/zesterer/forge), an interpreted language I wrote almost a year ago.
It has the same broad ambitions as Forge, but with a greater emphasis on optimisation and code quality.
## Example
```
let square = |x| x * x;
var squares = [];
for i in 1..=100 {
squares += square(i);
}
for square in squares {
println(square);
}
```