Lazyweb, can I have compilers in js and python?

For our l20n project, we’ll want to compile l20n source files into javascript. We want to do that both at compile time, and at runtime.

For runtime, I’ll need the compiler written in js by all chances, and for compile time, I’d rather go with python so that I don’t have build a HOST_JS or something. Of course, I don’t want to maintain two completely independent compiler implementations.

Thus I’m looking for code that can generate compilers in js and python, preferably itself in python or some other language we can use at build time, or at least use for one-off compilations.

Any tips?

The Conversation {1 comments}

  1. Martin {Wednesday September 1, 2010 @ 2:56 pm}

    It looks like ANTLR can emit both JavaScript and Python, and it has a Python runtime. http://www.antlr.org

Sorry, comments for this entry are closed at this time.