- uxnasm: treats
(foo)
as comment and fails. - drifblim: treats
(foo)
as nested comment,@[bar]
as invalid symbol.
➜ ~ cat blimtest.tal
|100
(foo)
[bar]
{baz}
BRK
// g++ -o vtermtest vtermtest.cpp -lvterm -lutil -lSDL2 -lSDL2_ttf -licuuc | |
#include <termios.h> | |
#include <pty.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <sys/wait.h> | |
#include <iostream> | |
#include <vector> | |
#include <vterm.h> | |
#include <SDL2/SDL.h> |
# 0 "../tal/uxn11/src/uxn.c" | |
# 0 "<built-in>" | |
# 0 "<command-line>" | |
# 1 "/usr/include/stdc-predef.h" | |
1 3 4 | |
# 0 "<command-line>" | |
2 | |
# 1 "../tal/uxn11/src/uxn.c" | |
# 1 "../tal/uxn11/src/uxn.h" | |
1 |
STARTCHAR zero | |
ENCODING 48 | |
SWIDTH 500 0 | |
DWIDTH 8 0 | |
BBX 7 10 0 0 | |
BITMAP | |
38 | |
6C | |
C6 | |
C6 |
#!/usr/bin/env python3 | |
import fontforge | |
import os | |
import sys | |
import subprocess | |
def convert_to_bdf(directory): | |
print("Converting font files to BDF...") |
|00 @System | |
&vector $2 &expansion $2 &wst $1 &rst $1 &metadata $2 &r $2 &g $2 &b $2 | |
&debug $1 &state $1 | |
|10 @Console &vector $2 &read $1 &pad $4 &type $1 &write $1 &error $1 | |
|20 @Screen | |
&vector $2 &width $2 &height $2 &auto $1 &pad $1 &x $2 &y $2 &addr $2 | |
&pixel $1 &sprite $1 |
➜ ~ cat blimtest.tal | |
|100 | |
;foo print | |
;bar print | |
;baz print | |
BRK | |
@print ( str* -- ) | |
LDAk #18 DEO |
(foo)
as comment and fails.(foo)
as nested comment, @[bar]
as invalid symbol.➜ ~ cat blimtest.tal
|100
(foo)
[bar]
{baz}
BRK
%PC { LITr 00 JSRr #0003 SUB2 } | |
%DBG { #010e DEO } | |
%function { } | |
%break { BRK } | |
%constant { } | |
%vector { } | |
%unless { } | |
%else { } | |
%end { } |
/******************************************************************************* | |
* | |
* A minimal Forth compiler in C | |
* By Leif Bruder <[email protected]> http://defineanswer42.wordpress.com | |
* Release 2014-04-04 | |
* | |
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial | |
* | |
* PUBLIC DOMAIN | |
* |
( usage: uxncli terminal-cli.rom ) | |
|10 @Console &vector $2 &read $1 $5 &write $1 | |
|0a @enter | |
|100 | |
@on-reset ( -> ) | |
;on-console .Console/vector DEO2 |