a2aaron / BrainFriendly

A BF interpreter made in Python
0 stars 2 forks source link

Optimizer #17

Open porglezomp opened 7 years ago

porglezomp commented 7 years ago

The interpreter should support common optimizations like using [-] and [+] as "set to zero", and constant folding +++ into +3, -+ into no-op, etc.