zxul767 / lox

An interpreter for the Lox language
1 stars 0 forks source link

properly implement "optional semicolon" feature in `jlox` #5

Open zxul767 opened 1 year ago

zxul767 commented 1 year ago

the feature has already been implemented in clox. we can do a similar implementation in jlox and remove the kludge that's currently implemented there.

zxul767 commented 1 year ago

marking p0 because even though we have a workaround in jlox REPL, we're now using the feature in sample (future test) programs, and all those programs error out with the current jlox implementation