Is there a JavaScript parser somewhere?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a JavaScript parser somewhere?

abergel
Just wondering…

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Is there a JavaScript parser somewhere?

Tudor Girba-2
Weren't your students working on one? :)

Doru

On Sun, Aug 16, 2015 at 3:10 AM, Alexandre Bergel <[hidden email]> wrote:
Just wondering…

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Is there a JavaScript parser somewhere?

abergel
Well, we parse JavaScript using a JavaScript parser. It works well but we bring quite a heavy dependency (you need node.js, then esprima, then a small homemade script). I have seen quite an activity around PetitParser, maybe someone has already implemented one.

Cheers,
Alexandre


> On Aug 16, 2015, at 2:20 AM, Tudor Girba <[hidden email]> wrote:
>
> Weren't your students working on one? :)
>
> Doru
>
> On Sun, Aug 16, 2015 at 3:10 AM, Alexandre Bergel <[hidden email]> wrote:
> Just wondering…
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
cbc
Reply | Threaded
Open this post in threaded view
|

Re: Is there a JavaScript parser somewhere?

cbc
I started a JavaScript parser (using PetitParser).  Not sure that I ever used it - can't find a reference.

Here is the code:
MCHttpRepository
user: ''
password: ''

Use at will, modify as you want if you find it useful.

-cbc

On Sun, Aug 16, 2015 at 9:34 AM, Alexandre Bergel <[hidden email]> wrote:
Well, we parse JavaScript using a JavaScript parser. It works well but we bring quite a heavy dependency (you need node.js, then esprima, then a small homemade script). I have seen quite an activity around PetitParser, maybe someone has already implemented one.

Cheers,
Alexandre


> On Aug 16, 2015, at 2:20 AM, Tudor Girba <[hidden email]> wrote:
>
> Weren't your students working on one? :)
>
> Doru
>
> On Sun, Aug 16, 2015 at 3:10 AM, Alexandre Bergel <[hidden email]> wrote:
> Just wondering…
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Is there a JavaScript parser somewhere?

Thierry Goubier
In reply to this post by abergel
There is this one:


( SmaCC JavaScript Contains a JavaScript grammar that has been annotated to generate ASTs.)

I'll have finished the port of version 2.0.5 in a few days. The Javascript parser works.

Thierry

2015-08-16 3:10 GMT+02:00 Alexandre Bergel <[hidden email]>:
Just wondering…

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Is there a JavaScript parser somewhere?

abergel
This is excellent!!!

Alexandre 



Le 18 août 2015 à 12:12, Thierry Goubier <[hidden email]> a écrit :

There is this one:


( SmaCC JavaScript Contains a JavaScript grammar that has been annotated to generate ASTs.)

I'll have finished the port of version 2.0.5 in a few days. The Javascript parser works.

Thierry

2015-08-16 3:10 GMT+02:00 Alexandre Bergel <[hidden email]>:
Just wondering…

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Is there a JavaScript parser somewhere?

Tudor Girba-2
Great!

I would like to add this as part of the main configuration of Moose. This means that SmaCC should become a dependency.

Please keep us posted.

Cheers,
Doru

On Tue, Aug 18, 2015 at 8:57 PM, Alexandre Bergel <[hidden email]> wrote:
This is excellent!!!

Alexandre 



Le 18 août 2015 à 12:12, Thierry Goubier <[hidden email]> a écrit :

There is this one:


( SmaCC JavaScript Contains a JavaScript grammar that has been annotated to generate ASTs.)

I'll have finished the port of version 2.0.5 in a few days. The Javascript parser works.

Thierry

2015-08-16 3:10 GMT+02:00 Alexandre Bergel <[hidden email]>:
Just wondering…

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev