comparison code/test.lm @ 3:a9a2ad99adfb

Rework lmc a bit to support labels in generated code. Add support for certain special funcall expressions, namely: if:else, isInteger? value and tail which translate to SEL ATOM CAR and CDR respectively
author Michael Pavone <pavone@retrodev.com>
date Fri, 25 Jul 2014 10:52:17 -0700
parents 71e8d638da5c
children afd55b32549b
comparison
equal deleted inserted replaced
2:71e8d638da5c 3:a9a2ad99adfb
2 init <- { 2 init <- {
3 #[1 2 3 4] 3 #[1 2 3 4]
4 } 4 }
5 5
6 main <- { 6 main <- {
7 1 | [(2 + 32 * 8) 3 4] 7 if: (isInteger?: 1 | [(2 + 32 * 8) 3 4]) {
8 42
9 } else: {
10 24
11 }
8 } 12 }
9 } 13 }