]> Witch of Git - ivy/commit
Add support for some arithmetic built-ins
authorCassie Jones <code@witchoflight.com>
Mon, 2 Mar 2020 19:02:49 +0000 (20:02 +0100)
committerCassie Jones <code@witchoflight.com>
Mon, 2 Mar 2020 19:02:49 +0000 (20:02 +0100)
commit6bafe32ce08498b428255217a0f0bf3f13cafe95
tree66773547b03c1aa7253ec28c69e1966f98eea24e
parent375d2db581a13b8bf75bb03d82d92ccc2adc86c5
Add support for some arithmetic built-ins

This adds support for addition, subtraction, and comparisons. All of
these built-ins are written as definitions in assembly. Currently the
true and false functions are included unconditionally in compilation,
and have their numbers hard-coded.
ivy-examples/print-n.vy [new file with mode: 0644]
ivy-examples/program.vy
src/main.rs
src/trans/x64.rs