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.3.0.tar.gz (17.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: tree_sitter_masl-0.3.0.tar.gz
  • Upload date:
  • Size: 17.6 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.3.0.tar.gz
Algorithm Hash digest
SHA256 7a457779b8fff9cab95fc12137a9774870d57f8db30273265f81ab6b85b6a88b
MD5 e932f32112af77f1621230965ffc6928
BLAKE2b-256 3a1eaacfa16fbd992fdfb00d8107df82f202e6be58db12be6493486a1c3c0141

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