2 unstable releases

0.22.6 Aug 9, 2024
0.1.0 Mar 28, 2023

#107 in Text editors

Download history 353/week @ 2024-07-29 471/week @ 2024-08-05 340/week @ 2024-08-12 288/week @ 2024-08-19 562/week @ 2024-08-26 847/week @ 2024-09-02 589/week @ 2024-09-09 556/week @ 2024-09-16 521/week @ 2024-09-23 503/week @ 2024-09-30 487/week @ 2024-10-07 789/week @ 2024-10-14 464/week @ 2024-10-21 574/week @ 2024-10-28 365/week @ 2024-11-04 323/week @ 2024-11-11

1,789 downloads per month
Used in 2 crates

MIT and maybe GPL-3.0-only

135KB
5K SLoC

C 4.5K SLoC JavaScript 137 SLoC // 0.0% comments Scheme 51 SLoC // 0.1% comments Rust 50 SLoC // 0.1% comments

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–4.5MB
~91K SLoC