I couldn't find a tree-sitter grammar for x86 assembly... so I made one! https://github.com/bearcove/tree-sitter-x86asm
It supports Intel syntax only, some NASM idiosyncrasies, and understands objdump output.
It's live on my site, see for example https://fasterthanli.me/series/making-our-own-executable-packer/part-3#in-which-we-relax-the-rules-of-the-series-a-tiny-bit
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!