#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

#317 in Text editors

Download history 2/week @ 2024-01-25 121/week @ 2024-02-01 201/week @ 2024-02-08 95/week @ 2024-02-15 18/week @ 2024-02-22 7/week @ 2024-02-29 2/week @ 2024-03-07 33/week @ 2024-03-28 19/week @ 2024-04-04

52 downloads per month

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.7–4MB
~71K SLoC