Skip to content

tree-sitter grammar for intel x86 assembly

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

bearcove/tree-sitter-x86asm

Repository files navigation

tree-sitter-x86asm

A tree-sitter grammar for x86 assembly, Intel syntax.

Just enough to highlight stuff on https://fasterthanli.me/.

In particular:

  • Parsing of effective addresses is very hacky (but highlights fine)
    • NASM macros aren't parsed at all
    • A ton of stuff is missing

But still, it makes a bunch of code look good, and that's good enough for me.

It even sorta-understands objdump output:

License

This project is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.

About

tree-sitter grammar for intel x86 assembly

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages