kasrasadeghi / backbone

1 stars 1 forks source link

basic arithmetic expressions #50

Open willsherwood opened 6 years ago

willsherwood commented 6 years ago
(+ a b)
(- a b)
(/ a b)
(* a b)
...

compile error on type(a) =/= type(b).

willsherwood commented 6 years ago

general form will need to be (+ type a b) since we don't know the type of variables at runtime

willsherwood commented 6 years ago

no / necessary

willsherwood commented 6 years ago

8dde36606da6f5192edda313e783a734eebb06fb implements primitive add (no pointer arithmetic, no other operators).