Crates.io | sqparse |
lib.rs | sqparse |
version | 0.3.0 |
source | src |
created_at | 2023-01-31 13:18:22.958835 |
updated_at | 2023-02-05 12:21:00.656626 |
description | Squirrel3 and Squirrel_re parser. |
homepage | https://github.com/cpdt/sqparse |
repository | https://github.com/cpdt/sqparse |
max_upload_size | |
id | 772681 |
size | 252,294 |
This is a parser for the Squirrel language, written in Rust. It is primarily designed to parse Respawn's custom Squirrel dialect, but should be able to handle Squirrel 2 and 3 code as well.
Features:
There are probably bugs.
There are some examples included. Use cargo to run them:
$ cargo run --example print_ast
$ cargo run --example print_lexer_error
$ cargo run --example print_parser_error
$ cargo run --release --example dryrun -- [path to file or directory]