The attached zip file contains a test case. The generated BASIC program fails when run, but re-typing the line at the BASIC prompt and re-running works fine:
putbasic-problem.zip
Adding a space before "MOD" allows PUTBASIC to tokenise this correctly, but I don't think it should be necessary if BBC BASIC doesn't require it.
Thanks to mikroman for reporting this in the discussion of https://github.com/stardot/beebasm/issues/64.
The attached zip file contains a test case. The generated BASIC program fails when run, but re-typing the line at the BASIC prompt and re-running works fine: putbasic-problem.zip![Screenshot at 2021-10-29 02-58-43](https://user-images.githubusercontent.com/7988240/139361093-e42278fe-e32e-4a59-bf89-ad43f312d44e.png)
Adding a space before "MOD" allows PUTBASIC to tokenise this correctly, but I don't think it should be necessary if BBC BASIC doesn't require it.