Skip to main content

Pygments lexer for the Nand2Tetris Hack Assembler

Project description

Pygments lexer for Nand2Tetris Hack Assembler language.

Part of the languages used/developed in the Building a Modern Computer from First Principles book.


The name of the lexer is hack_asm so you can call it from pygmentize like this:

pygmentize -l hack_asm -f html -O full test.asm

The recognize extension is .asm but it is as well used by many other lexers (like, you know, other assemblers), so I recommend passing directly the lexer name.


The lexer is available in PyPI, just install using pip:

pip install pygments-hackasm-lexer

And start using it.

Project details

Download files

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

Files for pygments-hackasm-lexer, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size pygments-hackasm-lexer-0.5.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page