parser: revision 1 done; super dirty

This commit is contained in:
2017-05-24 15:19:03 -04:00
parent 67b9c8c525
commit 3ea766724c
2 changed files with 87 additions and 9 deletions

20
examples/factorial Normal file
View File

@@ -0,0 +1,20 @@
ENTRY 22
LOAD -3
CONST 2
LT
BRF 10
CONST 1
RET
LOAD -3
LOAD -3
CONST 1
SUB
CALL 0 1
MULT
RET
CONST 12
CALL 0 1
IPRINT
CONST 10
PRINT
HALT