elikaski / BF-it

A C-like language to Brainfuck compiler, written in Python
MIT License
121 stars 11 forks source link

Improve the printint code #48

Closed NeeEoo closed 3 years ago

NeeEoo commented 3 years ago

Improved the old undocumented code.

The old code preserved value_to_print, but still became unpreserved since it was located in temp. The new code doesn't preserve value_to_print.

The new code uses 8 temp cells instead of 10 temp cells.

The new code is documented.

elikaski commented 3 years ago

Thank you so much!! 😃 This was long overdue