basilTeam / basil

Fast and flexible language exploring partial evaluation, context-sensitive parsing, and metaprogramming. Compiles JIT or AOT to native code.
BSD 3-Clause "New" or "Revised" License
124 stars 11 forks source link

Add float and double arithmetic #36

Open Eloitor opened 1 month ago

Eloitor commented 1 month ago

Fixes this kind of errors:

? 1 - 1.1
[1:1] Error: Incompatible arguments for function '-'. Expected '(Int, Int)', got '(Int, Double)'.
│       1 - 1.1
└───────^^^^^^^