UFifty50 / pythOwOn-compiler

A Stack-Based VM for PythOwOn written in C
MIT License
6 stars 0 forks source link

Implement infinity/NaN maths operators #18

Open UFifty50 opened 2 years ago

UFifty50 commented 2 years ago

Implement the literals "TOKEN_INFINITY" and "TOKEN_NAN", and add its conversion in asString() and error in asBool()

UFifty50 commented 2 years ago

In REPL: 1 / 0 = inf -1 / 0 or -(1 / 0) = -inf 0 / 0 = nan