#apex #parser #incremental #unofficial

tree-sitter-apex

apex grammar for the tree-sitter parsing library

2 releases (1 stable)

1.0.0 Apr 8, 2022
0.0.1 Apr 8, 2022

#342 in Text editors

MIT license

1.5MB
54K SLoC

C 53K SLoC JavaScript 1K SLoC // 0.0% comments Rust 31 SLoC // 0.5% comments

Unofficial tree-sitter grammar for apex

Warning! This grammar is not complete and is under development (in my free time). Contributions are welcomed!


lib.rs:

This crate provides apex language support for the tree-sitter parsing library.

Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:

let code = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_apex::language()).expect("Error loading apex grammar");
let tree = parser.parse(code, None).unwrap();

Dependencies

~2.8–4MB
~72K SLoC