You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Nixon Enraght-Moony e840718997 init 1 month ago
..
Makefile init 1 month ago
README init 1 month ago
_csums init 1 month ago
dump.c init 1 month ago
t.c init 1 month ago
t.elf init 1 month ago
t.pl1 init 1 month ago
t.pl2 init 1 month ago
t.pl3 init 1 month ago
t.pl4 init 1 month ago
t.t init 1 month ago
t3x-history.txt init 1 month ago
t3x.bnf init 1 month ago
t3x.txt init 1 month ago
test.t init 1 month ago

README


This is the T3X9 compiler, as described in the book

"Write Your Own Compiler"
by Nils M Holm

More details about the book can be found at T3X.ORG.

To compile the compiler on FreeBSD, just do

chmod +x t.elf && ./t.elf <t.t >t.new

To compile it on any system providing a C89 compiler:

cc -o t0 t.c && ./t0 <t.t >t.new

NOTE: some patches have been applied to the compiler since
publication. The source code in the "t.t" file reflects the
latest patchlevel. Patches are contained in the files t.pl?.