Skip to main content

MASL is an educational assembly language that is not supposed to be used for interactive exercises and games.

Project description

Treesitter grammar for MASM

Crates.io Version Crates.io License

MASM is an educational assembly language and this is its fancy grammar parser generater and highlighting stuff.

If you have no idea what MASM is, please take a look at the language itself over HERE.

Here is how it looks:

	mov 0xff p0 ; lamp out

start:
	cmp dat 1337
	jge end
	mov 19 acc ; foo
	add 5
	cmp 24 acc
	je good # expected
	jne bad ; something went wrong, stop everything


good: mov 19 acc
	inc dat ; increment the success count
	jmp start

end: mov 0xff p0 ; enable the lamp, then halt
bad: hlt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tree_sitter_masl-0.2.0.tar.gz (18.1 kB view details)

Uploaded Source

File details

Details for the file tree_sitter_masl-0.2.0.tar.gz.

File metadata

  • Download URL: tree_sitter_masl-0.2.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for tree_sitter_masl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 265ca7cc0bd39347db1149ff3db97451ef6d6a6be7998761c883dc4607afcd06
MD5 4175445048e185dc67e0db2431136650
BLAKE2b-256 9b3747964c8c4aee3e35320c3affbe6a975404dfcd1f69da3f2067f9a2644523

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page