I've implemented several harmony proposals in es.next by expanding the grammar
in pegjs
(https://github.com/dmajda/pegjs/blob/master/examples/javascript.pegjs). The
AST and generator is defined using es.next classes and modules. I was thinking
of converting the derived classes in the ast and generator modules to use the
proto operator |> rather than 'extends' since the LHS is desugared to a
function. I'm using '@' for private names but this is a moving target and looks
like it will be replaced by private names. It works similarly to coffeescript
in that it generates plain javascript. It's been a side project I've worked on
when I've had free time. It's in my private github repo and works with node
using websockets (so you can load the parser into the browser). Could make it
public if I have some time to spend on it this weekend. I like my approach
because the grammar is easy to extend and I don't know of any other transpiler
whose ast/generators are in
the target language.
On Oct 11, 2011, at 9:10 AM, Jake Verbaten <[email protected]> wrote:
One of the reasons traceur is not suitable is that it's a product of
google and thus not neutral.
>
>I've actually asked traceur whether they intent to become a full es harmony
>compliant transpiler but there was no response.
>
>And another reason would be that it currently implements some strawmans
that conflict with harmony proposals.
>
>For example it's class mechanism is not loyal to the _current_ es harmony
>proposal, another example would be traceur generators not using the
>`function*` notation.
>
>
>On Tue, Oct 11, 2011 at 4:42 PM, John J Barton <[email protected]>
>wrote:
>
>
>>
>>
>>On Tue, Oct 11, 2011 at 6:41 AM, Juan Ignacio Dopazo <[email protected]>
>>wrote:
>>
>>Hi! Is there anyone working on a Harmony "transpiler" besides Traceur?
>>
>>I'd like to understand why Traceur is not suitable. As far as I understand it
>>was written to study new directions in JS.
>>
>>jjb
>>
>>It'd be really useful to have a transpiler that justs desugars (what's
>>possible to desugar) without using a library like Closure, the way
>>CoffeeScript is working nowadays.
>>>
>>>
>>>Thanks,
>>>
>>>
>>>
>>>Juan
>>>
>>>_______________________________________________
>>>es-discuss mailing list
>>>[email protected]
>>>https://mail.mozilla.org/listinfo/es-discuss
>>>
>>>
>>
>>_______________________________________________
>>es-discuss mailing list
>>[email protected]
>>https://mail.mozilla.org/listinfo/es-discuss
>>
>>
>
_______________________________________________
>es-discuss mailing list
>[email protected]
>https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss