Top-of-head musings that are guaranteed to be confused, incomplete, and
wrong:
Seems like, roughly speaking, semicolons are optional, but if not present
must be replaced by a newline. The primary complication being we otherwise
want to ignore newlines. So, if I augment the token value to include a
Hi,
On Tue, Dec 06, 2016 at 10:52:06PM -0500, Ricky wrote:
> Your syntax implies that [\n] should be treated as [;]. So why not use [\n]
> as alternative?
Unfortunately, it's not that easy.
var foo = 4
+ 5
is also allowed. This can lead to interesting hidden bugs[1], but is valid.