Open talsewell opened 3 months ago
Thanks for reporting. Adding else if
shouldn't be too hard. The error reporting is pretty bare bones and really just pretty-prints the error messages we get from the PEG infrastructure; there's lots of room for improvement but it's better than nothing.
It happens that pancake doesn't support
if ( ) { } else if ( ) { } else { }
, that is, theelse if
pair is not supported and the second if has to be enclosed in{ .. }
. That is a grumble but not a show stopper.However, given this syntax, for some reason, the error reported is "failed to see expected token" at
var yv = y;
, which is much too early:This is quite a nuisance, it requires an overcomplicated process of splicing out sections of the file to try to figure out what the error actually is.