Giter Site home page Giter Site logo

naclsn / tree-sitter-nasm Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 1.0 3.4 MB

NASM grammar with tree-sitter

License: MIT License

Python 0.01% C++ 0.22% JavaScript 0.49% Rust 0.06% Scheme 0.06% C 99.16%
parser tree-sitter assembly nasm nasm-assembly

tree-sitter-nasm's Introduction

tree-sitter-nasm

NASM grammars with tree-sitter.

References


Notes/Remarks

  • an expression is an expression (e.g. no "critical expressions")
  • macro reserved token are always allowed (e.g. %0) same with $ and $$
  • handling of e.g. struc and align standard macros (even though they are just macros)
  • things like j%-1 will fail (maybe (instruction j (operand %+1)) or whatever)
  • the fact that ':' is optional after a label makes it inherently ambigus:
_start:
	word1	word2
	; 'word1' may be a macro or the label and
	; 'word2' the instruction or an operand

Here opts for 'word1' as an instruction (and thus 'word2' as its first operand).

tree-sitter-nasm's People

Contributors

clason avatar naclsn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

panekj

tree-sitter-nasm's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.