Wellingborough / LMC

Little Man Computer Simulator
https://wellingborough.github.io/LMC/
GNU General Public License v3.0
1 stars 4 forks source link

Spaces after literal values cause problems... #45

Closed Wellingborough closed 11 months ago

Wellingborough commented 11 months ago

If we have a hex value of "#&FFFF", everything is fine, but with a trailing space "#&FFFF " fails the hex test. I thought we were stripping the whitespace from everything, and it looks like whitespace is indeed stripped from labels.

Wellingborough commented 11 months ago

Hmmm. Something else is going on here; the following value is rejected as malformed: #&01F6.

Ah - I think the regex means that we expect numbers, then letters. So, anything with numbers after letters fails...