mirror of
https://github.com/samsonjs/compiler.git
synced 2026-03-25 08:45:52 +00:00
While and until loops work as in C and Ruby. Repeat loops infinitely (or until a break is encountered). Break is used to break out of the innermost loop construct.
12 lines
211 B
Makefile
12 lines
211 B
Makefile
build: test.rb test.code
|
|
ruby test.rb test.code
|
|
nasm -f elf -g -o test.o test.asm
|
|
ld -o test test.o
|
|
# $? indicates success as per unix convention
|
|
./test
|
|
|
|
clean:
|
|
@rm -f test.o
|
|
@rm -f test
|
|
@rm -f test.asm
|
|
|