[antlr-interest] Trying antlr for python/javascript targets, bad timing?

Axel Hecht l10n.moz at googlemail.com
Tue Sep 7 15:04:47 PDT 2010


My use-case is somewhat involved in that we're changing l10n paradigms,
moving towards a declarative programming language. The overall structure is
simple, but it does end up with a templating language with expressions and
filters. We want to be able to do some level of static analysis on those
"programs" to make sure that references from one localized string to another
work, and the type definitions within that programming language depend on
the human language. I.e., a noun in English is different to a noun in
Polish.

And of course, the details of the underlying grammar are not laid in stone
at this point.

The goal is to take source code in what we call 'lol files' and turn them
into js code that is then read and runtime and used as state machine to
generate the final localized strings.

Further reading is at https://wiki.mozilla.org/L20n. The grammar is a tad
simpler at places, and a tad more complex at others than the one at
http://people.mozilla.com/~axel/l20n/grammar.html.

So, we're not really simple in both the input, the output, and the
processing requirements, and I'd love to be able to not reinvent wheels.
That said, I've forgotten most of what I ever knew about java, and never did
any real work. I'm a python toolchain guy for the most part these days, with
some js.

Axel

2010/9/7 Jim Idle <jimi at temporal-wave.com>

> Axel,
>
> As far as I can tell, both the Python and Javascript targets have been
> abandoned by their original authors. Some people seem to have had some
> limited success with Python in earlier versions of ANLTR, but I am loathe
> to
> promote it to you as I don't use Python. If you must have parsers in those
> languages, then it might be better to hand craft them; unless your input is
> more complicated than your use case implies?
>
> Jim
>
> > -----Original Message-----
> > From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> > bounces at antlr.org] On Behalf Of Axel Hecht
> > Sent: Tuesday, September 07, 2010 11:58 AM
> > To: antlr-interest at antlr.org
> > Subject: [antlr-interest] Trying antlr for python/javascript targets, bad
> > timing?
> >
> > Hi all,
> >
> > quick intro, I'm Axel Hecht, and I work on l10n infrastructure at
> Mozilla.
> >
> > I'm looking into antlr for parsing a new l10n file format we're working
> on, and
> > we're looking for parsers in both JavaScript and Python.
> >
> > I'm struggling finding a good starting point right now:
> >
> > - 3.2.1 has broken JS support, and there's no python runtime for it.
> > - fisheye is down
> > - github is rather busted, version numbers don't match, code removal of
> > imports etc.
> > - hudson is offline
> > - 3.2.1 isn't tagged on github, so there's no obvious branch point, if I
> ignored
> > for a moment that JS is busted there.
> >
> > So, am I sneaking in on this in a bad timing? Any recommendations on
> where
> > to focus my efforts?
> >
> > Thanks
> >
> > Axel
> >
> > List: http://www.antlr.org/mailman/listinfo/antlr-interest
> > Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> > email-address
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>


More information about the antlr-interest mailing list