El 26/12/17 a las 13:26, Axel Hecht escribió:
> Am 26.12.17 um 11:15 schrieb Ricardo Palomares Martínez:
>> Since L20n, or FTL now, is starting to land in desktop products, I'd
>> like to review the code to see if I would really be able to port it to
>> Java. So, what should I look to implement to get an AST parser?
>>
>
Thank you for your quick answer. I'll check the code in Pontoon.
> If you're porting parsers to a strictly typed language, maybe checking
> the Rust implementation might be more useful,
>
https://github.com/projectfluent/fluent-rs, or the python version that
> we're using in compare-locales and vcs sync on pontoon.
I find very difficult to follow Rust syntax, TBH. I remember last time
I found JS code very straightforward to convert it to Java
(presumably, also to C and C#). Dealing with types will be easy if the
code structures are similar; other than split classes in separate
files and adapt I/O procedures, I remember than most code in L20n AST
was almost ready to copy & paste to Java editor. I guess this will
happen with Fluent-syntax, too.
> Note, we're going to wrap up version 0.5 of the syntax early next
> year, which is going to shift some aspects of the grammar again. The
> master branch of the rust impl has the most important ones, though.
> (section comments and private messages)
OMG, that's not gonna end ever? :-) I remember more than 4 years ago,
when the first version of L20n came out and a guy had half done the
port to Java (
https://github.com/antoineroux/l20n-java) and I was
happy to have found most work done. :'-(
I'll think I'll use a snapshot of current status in JS implementation.
Thanks again, and happy new year to everybody.