sunjay / brain

A high level programming language that compiles into the brainfuck esoteric programming language
MIT License
167 stars 12 forks source link

Numbers Print As Puncutation #68

Open sunjay opened 7 years ago

sunjay commented 7 years ago

The current algorithm for displaying numbers is quite naive and largely broken. It only really works for numbers between 0 and 9. After that, it prints out many punctuation characters and then some letters for any numbers greater than 9.

This should be fixed to allow for any number of digits.

Fixing this will likely require an implementation of the modulo (%) operator and integer division (/).