| Crates.io | lenga |
| lib.rs | lenga |
| version | 1.0.2 |
| created_at | 2025-11-04 17:11:44.786369+00 |
| updated_at | 2025-11-12 14:32:55.060988+00 |
| description | Tools for the Lenga develop paradigm |
| homepage | |
| repository | https://github.com/lengalabs/lenga |
| max_upload_size | |
| id | 1916598 |
| size | 557,507 |
A toolkit for working with the Lenga format.
Lenga requieres the following tools to build:
Lenga provides a library for manipulating language in Lenga format.
[dependencies]
lenga = "1.0.0"
use lenga::language::{Language, c::C};
fn main() {
let lenga_file = File::open(&path).unwrap();
let file_contents: Vec<u8> = lenga_file.bytes().map(|b| b.unwrap()).collect();
let c_lenga_data = c.parse_nodes(file_contents).unwrap();
fs::write(Path::new(&path), c_lenga_data).unwrap();
}
Lenga provides some CLI tools to promote usage of Lenga format
Simple transpilation tool to convert to/from Lenga format. To use it simply run:
transpile <file>
A language like server to facilitate editors file manipulation. Usage:
lenga-server
* As of versión 1.0.0 the server always starts in port 49100.
An intelligent merge algorithm for Lenga files. For CLI execution the following can be run:
merge <origin> <current> <other>
Append to .git/config
[merge "c-lenga-driver"]
name = A custom merge driver used to resolve conflicts in Lenga files
driver = merge %O %A %B
Append to .gitattributes
*.c.lenga merge=c-lenga-driver"