Crates.io | rigz_ast |
lib.rs | rigz_ast |
version | 0.4.0 |
source | src |
created_at | 2024-10-29 04:51:14.523123 |
updated_at | 2024-11-04 20:09:08.467351 |
description | AST parser for the rigz programming language |
homepage | |
repository | https://gitlab.com/inapinch/rigz/crates/ast |
max_upload_size | |
id | 1426564 |
size | 102,743 |
Generate an AST for a given input.
// Create a parser
fn parse() {
let input = "2 + 2";
let mut parser = Parser::prepare(input).expect("Invalid Tokens");
let program = parser.parse().expect("Failed to parse");
}