Hacker News new | ask | show | jobs
by elf_m_sternberg 4388 days ago
Great work! There are a couple of other projects like this. Are you familiar with Wisp or Outlet? This is good work; I've been trying to hack my own Lisp -> JS transpiler, and not having much work.

Your 'Nodes' file shows a strong familiarity with what's going on inside Coffeescript, too. :)

1 comments

> Great work!

Thanks!

> There are a couple of other projects like this. Are you familiar with Wisp or Outlet?

The thing is, Closer was created for use on CodeCombat, which expects the parse tree to be in the standard Mozilla AST format [1]. As far as I know, none of the projects you mention satisfy this requirement.

> Your 'Nodes' file shows a strong familiarity with what's going on inside Coffeescript, too. :)

Actually it was lifted verbatim from [2] -- I just converted it to CoffeeScript :)

[1]: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Sp... [2]: https://github.com/zaach/reflect.js

> The thing is, Closer was created for use on CodeCombat, which expects the parse tree to be in the standard Mozilla AST format. As far as I know, none of the projects you mention satisfy this requirement.

I don't know anything about Outlet, but the Wisp compiler actually makes use of Escodegen [1] – which expects input to be provided in the Mozilla AST format – to generate JavaScript. You can peek at writer.wisp [2] in the compiler codebase to see how it's done.

[1] https://github.com/Constellation/escodegen [2] https://github.com/Gozala/wisp/blob/master/src/backend/escod...