| Crates.io | frut_lib |
| lib.rs | frut_lib |
| version | 0.0.4 |
| created_at | 2025-10-01 16:43:04.979219+00 |
| updated_at | 2025-11-06 10:51:50.673125+00 |
| description | A no_std library for parsing, analyzing, and executing the Frut programming language. |
| homepage | |
| repository | https://github.com/BenimFurka/frut_lib |
| max_upload_size | |
| id | 1862951 |
| size | 219,750 |
A no_std library for parsing, analyzing, and executing the Frut programming language.
This library provides the core functionality for lexing, parsing, semantic analysis,
and interpretation/compilation of Frut code.
To use frut_lib, first add this to your Cargo.toml:
[dependencies]
frut_lib = "0.0.4"
For no_std environments, disable default features:
[dependencies]
frut_lib = { version = "0.0.4", default-features = false }
use frut_lib::parse_code;
fn main() {
let result = parse_code("var x: int = 42;", "main.ft".to_string());
match result.is_success() {
false => println!("Found {} errors", result.errors.len()),
true => println!("Analysis successful"),
}
}
See the examples/ directory for more usage examples:
cargo run --example base
cargo run --example interp
For documentation, visit docs.rs/frut_lib.
Licensed under the Apache License, Version 2.0 LICENSE.