Axel Hecht Mozilla in Your Language

August 31, 2010

Lazyweb, can I have compilers in js and python?

Filed under: L10n,Mozilla — Tags: — Axel Hecht @ 8:10 am

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?

1 Comment

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

    Comment by Martin — September 1, 2010 @ 2:56 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress