Dear List
Making Pharo interacting with Javascript has been the cup of tea of the Seaside community. I am wondering whether there has been an attempt to produce a parser for Javascript within Pharo.
We are interested in getting Javascript models within Moose.
For now, it is likely what we will use the parser of Mozilla to produce MSE files.
Cheers, Alexandre
NB: Sorry for the cross-posting
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
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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Have you looked at OMeta? there is a package for squeak I think.
Mike
On Monday, August 17, 2009, Alexandre Bergel alexandre@bergel.eu wrote:
Dear List
Making Pharo interacting with Javascript has been the cup of tea of the Seaside community. I am wondering whether there has been an attempt to produce a parser for Javascript within Pharo.
We are interested in getting Javascript models within Moose.
For now, it is likely what we will use the parser of Mozilla to produce MSE files.
Cheers, Alexandre
NB: Sorry for the cross-posting
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
True!
Alexandre
On 20 Aug 2009, at 03:40, Michael Roberts wrote:
Have you looked at OMeta? there is a package for squeak I think.
Mike
On Monday, August 17, 2009, Alexandre Bergel alexandre@bergel.eu wrote:
Dear List
Making Pharo interacting with Javascript has been the cup of tea of the Seaside community. I am wondering whether there has been an attempt to produce a parser for Javascript within Pharo.
We are interested in getting Javascript models within Moose.
For now, it is likely what we will use the parser of Mozilla to produce MSE files.
Cheers, Alexandre
NB: Sorry for the cross-posting
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Have you looked at OMeta? there is a package for squeak I think.
Mike
On Monday, August 17, 2009, Alexandre Bergel alexandre@bergel.eu wrote:
Dear List
Making Pharo interacting with Javascript has been the cup of tea of the Seaside community. I am wondering whether there has been an attempt to produce a parser for Javascript within Pharo.
We are interested in getting Javascript models within Moose.
For now, it is likely what we will use the parser of Mozilla to produce MSE files.
Cheers, Alexandre
NB: Sorry for the cross-posting
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Not yet, but we will
Cheers, Alexandre
On 20 Aug 2009, at 03:46, Michael Roberts wrote:
Have you looked at OMeta? there is a package for squeak I think.
Mike
On Monday, August 17, 2009, Alexandre Bergel alexandre@bergel.eu wrote:
Dear List
Making Pharo interacting with Javascript has been the cup of tea of the Seaside community. I am wondering whether there has been an attempt to produce a parser for Javascript within Pharo.
We are interested in getting Javascript models within Moose.
For now, it is likely what we will use the parser of Mozilla to produce MSE files.
Cheers, Alexandre
NB: Sorry for the cross-posting
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
On 21.08.2009, at 13:58, Alexandre Bergel wrote:
Not yet, but we will
Another nice parser framework to look at is the one in Lukas Helvetia:
http://scg.unibe.ch/research/helvetia
Marcus
Cheers, Alexandre
On 20 Aug 2009, at 03:46, Michael Roberts wrote:
Have you looked at OMeta? there is a package for squeak I think.
Mike
On Monday, August 17, 2009, Alexandre Bergel alexandre@bergel.eu wrote:
Dear List
Making Pharo interacting with Javascript has been the cup of tea of the Seaside community. I am wondering whether there has been an attempt to produce a parser for Javascript within Pharo.
We are interested in getting Javascript models within Moose.
For now, it is likely what we will use the parser of Mozilla to produce MSE files.
Cheers, Alexandre
NB: Sorry for the cross-posting
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project