[Seaside-dev] Javascript-Core-pmm.23

Lukas Renggli renggli at gmail.com
Wed Dec 17 11:43:43 UTC 2008


We removed the parser for now, as it is internally not used.

The question for the future:

       Is the SmaCC runtime working on GemStone, GST and Dolphin?

I know that SmaCC is well supported in Pharo, VAst and VW.

Cheers,
Lukas

On Mon, Dec 15, 2008 at 8:30 PM, Philippe Marschall
<philippe.marschall at gmail.com> wrote:
> Hi
>
> As a follow up to Javascript-Core-lr.22 Javascript-Core-pmm.23
> replaces the SmaCC generated parser with a hand written one. The most
> important difference (besides the eliminated dependency on SmaCC
> runtime) is that it is a JSON and not a JavaScript parser [1] [2]. The
> SmaCC generated parser accepted a lot of stuff that is valid
> JavaScript but invalid JSON. The hand written parser is a bit more
> relaxed in the way that it allows anything but a number to be the top
> level element (the standard allows only for Arrays and Dictionaries).
> Should that be a show stopper numbers could be added.
>
> differences in detail:
> - numbers can not be top level elements
> - doesn't support comments (not part of standard)
> - uses Array instead of OrderedCollection for arrays
> - allows only double quoted string literals (according to standard)
> - handles escape characters including Unicode escapes (doesn't reduce
> a surrogate pair to a single character)
> - treats \" as an escape for " instead of \" (according to standard)
> - is about four times faster in a certainly flawed and biased micro benchmark
> - tries to use descriptive error messages and throws non-SmaCC errors
>
>  [1] http://json.org/
>  [2] http://tools.ietf.org/html/rfc4627
>
> Cheers
> Philippe
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>



-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside-dev mailing list