Thanks Lukas,
We will dive into this.
Alexandre
On 17 Aug 2009, at 18:19, Lukas Renggli wrote:
Making Pharo
interacting with Javascript has been the cup of tea of
the
Seaside community.
There is a JSON parser in the Seaside 2.9 repository in the package
Javascript-Core. Earlier versions of the package used a SmaCC based
parser, later versions a hand written one for compatibility. While
JSON is only a subset of Javascript, it wouldn't be too difficult to
add the missing pieces to support the full Javascript syntax. The
ECMAScript language documentation is pretty good
(
http://www.mozilla.org/js/language/E262-3.pdf).
What is probably much more tricky is to let Moose build a meaningful
model from the code. Javascript is essentially a sequence of
statements that create objects and associated behavior as
side-effects. There is no syntax for classes/prototypes/...
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.