Skip to content

Comment on Building a BASIC Interpreter, '80s styleparent

Comments

I think you could make your lowercase loop shorter – and definitely faster – by jumping into a second loop when inside a string, instead of setting a flag.

You’re right! I’ll do that. :-)

I haven’t done a lot of optimization yet-probably lots of things like this. :-)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.