2 unstable releases
0.22.6 | Aug 9, 2024 |
---|---|
0.1.0 | Mar 28, 2023 |
#120 in Text editors
1,584 downloads per month
Used in 2 crates
135KB
5K
SLoC
tree-sitter-asm
Generic assembly grammar for tree-sitter
Usage in Neovim
Parser Installation
The parser is included in the
nvim-treesitter plugin. To
use it, simply install it with :TSInstall asm
or by adding it to your
ensure_installed
list.
lib.rs
:
This crate provides asm 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_asm::language()).expect("Error loading asm grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.8–5MB
~94K SLoC