alberthdev / spasm-ng

SPASM-ng is a z80 assembler with extra features to support development for TI calculators.
GNU General Public License v2.0
97 stars 23 forks source link

Allow an empty input file to be parsed correctly #79

Open myclevorname opened 5 months ago

myclevorname commented 5 months ago

Yes, it uses a goto statement. Even though goto statements are considered harmful, I think it is okay in this situation. This fixes #78.

tari commented 5 months ago

I'd also recommend adding a test for this, but that might not be easy to do since our tests are set up to have metadata in the input file.