kiedtl / bureaucrat

A high-level, stack-based language that compiles to Uxn bytecode.
MIT License
13 stars 0 forks source link

Fixed point #1

Open kiedtl opened 5 months ago

kiedtl commented 5 months ago

In-progress on the fixpt branch.

TODO:

kiedtl commented 5 months ago

Unsure if fixed point literals baked into the compiler are a good idea. If there's a way for modules to "claim" a literal suffix, with custom parsing code, that would be nice. Would probably be too complicated to implement however.

As for the syntax, if it is added: 3.14fs or 3.14xs? F for fixed point, x for... fixed point. (Reserving f for a future half-float type.) S for short, of course.