stardot / beebasm

A portable 6502 assembler with BBC Micro style syntax
http://www.retrosoftware.co.uk/wiki/index.php/BeebAsm
GNU General Public License v3.0
83 stars 26 forks source link

PUTBASIC doesn't always correctly tokenise pseudo-variable rvalues on lhs #63

Open ZornsLemma opened 2 years ago

ZornsLemma commented 2 years ago

This is different from https://github.com/stardot/beebasm/issues/45; the fix for that doesn't help.

Reported on stardot by lovebug (https://stardot.org.uk/forums/viewtopic.php?p=337884#p337884) and (possibly) by mikroman_3526 (https://stardot.org.uk/forums/viewtopic.php?f=55&t=23547).

I've created a test case (test/3-directives/basiclhstoken*) and a possible fix on the ZornsLemma/lhs-token-fix branch. I'm creating this issue to help document the problem and the need for a fix to be merged at some point.