newspeaklanguage / newspeak

Newspeak is a live object-capability language in the Smalltalk tradition
https://newspeaklanguage.org/
Other
132 stars 11 forks source link

Fast parser accepts junk at the end of an expression #77

Closed gbracha closed 1 year ago

gbracha commented 3 years ago

public aMethod = ( messageSelector 66 )

accepts and runs, assuming messageSelector works, and returns self.

gbracha commented 1 year ago

Fixed. Also fixed another bug, which was the problem that code like foo: a = (^77) was not accepted because the fast parser is not scannerless, and didn't deal well with the sequence >= after T, misinterpreting it as a greater-equals rather than a greater-than followed by an equal sign.