| Crates.io | f1r3fly-tree-sitter-rholang |
| lib.rs | f1r3fly-tree-sitter-rholang |
| version | 0.1.0 |
| created_at | 2025-07-28 22:04:13.166995+00 |
| updated_at | 2025-07-28 22:04:13.166995+00 |
| description | F1r3fly Rholang grammar for tree-sitter - incremental parsing for Rholang smart contracts |
| homepage | https://f1r3fly.io |
| repository | https://github.com/F1R3FLY-io/f1r3fly |
| max_upload_size | |
| id | 1771636 |
| size | 2,763,561 |
F1r3fly Rholang grammar for tree-sitter - incremental parsing for Rholang smart contracts.
This crate provides a tree-sitter grammar for the Rholang programming language, enabling fast incremental parsing for editors, IDEs, and development tools.
Tree-sitter is a parser generator tool and an incremental parsing library that creates concrete syntax trees for source files and efficiently updates them as the source file is edited.
Add to your Cargo.toml:
[dependencies]
f1r3fly-tree-sitter-rholang = "0.1.0"
Basic usage:
use tree_sitter::Parser;
use f1r3fly_tree_sitter_rholang::language;
let mut parser = Parser::new();
parser.set_language(language()).expect("Error loading Rholang grammar");
let source_code = "new stdout(`rho:io:stdout`) in { stdout!(\"Hello, Rholang!\") }";
let tree = parser.parse(source_code, None).unwrap();
cargo build --release
cargo test
Licensed under the MIT License.