Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Micro syntax for uxntal
filetype: uxntal
detect:
filename: "\\.(tal|uxn|uxntal|inc)$"
rules:
- identifier: "[@,;.&][^\ \n\r]+"
- constant: "[\"#'|$][^\ \n\r]+"
- statement: "\\b(BRK|LIT|INC|POP|DUP|NIP|SWP|OVR|ROT|EQU|NEQ|GTH|LTH|JMP|JCN|JSR|STH|LDZ|STZ|LDR|STR|LDA|STA|DEI|DEO|ADD|SUB|MUL|DIV|AND|ORA|EOR|SFT)[2rk]{0,3}\\b"
- comment:
start: "\\(\\ "
end: "\\ \\)"
rules: []
- symbol: "\\[|\\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment