Commit Graph

4 Commits

Author SHA1 Message Date
3d0da0ec85 Add do_call macro, implement Bool builtins, add tests
* I noticed that `fn call(...)` in all objects was identical, so I made
  a macro for it. This should make things a little easier to read, since
  do_call is about 30 lines a pop.
* Bool has a constructor now, and a to_int and to_float implementations
* Add tests for constructors and add new bool tests

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-09-30 12:43:02 -07:00
1dd058ae18 Add binary and hex number parsing
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-09-26 10:03:54 -07:00
0d126b8ba3 Add FloatInst method implementations and tests
FloatInst should be fully implemented now and have a suite of tests to
make sure those methods are doing what they should be.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-09-26 09:03:13 -07:00
f020155453 Add integration tests
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-09-25 11:42:51 -07:00