Javascript for SableCC : a status update

View: New views
2 Messages — Rating Filter:   Alert me  

Javascript for SableCC : a status update

by Jean-Baptiste BRIAUD -- Novlog :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi the list !

I know it has been discussed long time ago in 2005 but I'd like to  
have a status update on that javascript grammar for SableCC.

After searching on the site, on google, on mailling list archive, I  
was not able to find it.

Would anyone of you know where I can find a javascript grammar for  
SableCC or maybe confirm that it doesn't exist ?

In fact, I found several javascript grammar for antlr, but  
unfortunatly, I don't like that tree grammar design at all, I really  
appreciate the visitor pattern of SableCC.
Would it be possible to convert that javascript grammar from antlr  
definition to SableCC definition ?

Any other idea to help me keep using SableCC ? :-)
Unfortunatly, doing myelf such a grammar is not a solution as I won't  
have time for it.

Note : my goal is not to execute that javascript, so a really reduced  
grammar could be OK : I don't need to distinguish operator but just  
function (including anonymous) parameters, and variables (local,  
global, block) declarations. I'm not sure how this could reduce the  
grammar and then the cost of doing it from scratch...

Thanks !


_______________________________________________
SableCC-Discussion mailing list
SableCC-Discussion@...
http://lists.sablecc.org/listinfo/sablecc-discussion

Re: Javascript for SableCC : a status update

by Etienne M. Gagnon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jean-Baptiste,

As you found out, there is a tentative grammar in the scriptonite
project CVS on SourceForge. It won't deal with all the awkward
exceptions documented in the ecmascript specification, but it will be OK
as long as the analyzed javascript code doesn't contain exceptional uses.

As for the future, keep an eye open for the upcoming SableCC 4 on which
I am working hard.

Etienne

Jean-Baptiste BRIAUD -- Novlog wrote:

> Hi the list !
>
> I know it has been discussed long time ago in 2005 but I'd like to
> have a status update on that javascript grammar for SableCC.
>
> After searching on the site, on google, on mailling list archive, I
> was not able to find it.
>
> Would anyone of you know where I can find a javascript grammar for
> SableCC or maybe confirm that it doesn't exist ?
> [...]
> Any other idea to help me keep using SableCC ? :-)
--
Etienne M. Gagnon, Ph.D.
SableCC:                                            http://sablecc.org




_______________________________________________
SableCC-Discussion mailing list
SableCC-Discussion@...
http://lists.sablecc.org/listinfo/sablecc-discussion

signature.asc (265 bytes) Download Attachment