Uxnfor is a formatter for Uxntal.
The formatter expects the standard Uxntal Notation, sometimes called Drifblim-style.
- Struct labels are capitalized.
- Source is indented with tabulators.
- Comments that should be on their own line begin with a ( | pipe ).
- Names of routines that are emitting are <wrapped> inside angle brackets.
- Subroutines definitions without an stack effect will be left inlined
- Tokens inside square brackets will be formatted as blocks of binary data.
- The zero-page is indicated by |000, the one-page is indicated by |100.
- Local forward references are indicated by &>loop for nesting.
- Routines that fall through to the next one end with ( >> ).
If a routine is printing, drawing, or sometimes ingesting all of its arguments, the routine can be wrapped within angular brackets to indicate that it should end a line to Uxnfor.
@<emit-num> ( num* -- ) LIT "0 ADD .Console/write DEO JMP2r
- Source, Uxntal
incoming: uxntal notation uxntal software uxnfor uxntal devlog 2024