Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Erlang and Antlr

Is it possible to write an Antlr code generation target for Erlang?

like image 251
Tat-Yuen Hui Avatar asked Dec 20 '09 09:12

Tat-Yuen Hui


2 Answers

It depends what you mean. If you mean you want to generate parser & lexer source files in Erlang, then no, this is not possible (at least, not out of the box*). Checkout the current list of targets for ANTLR: http://www.antlr.org/wiki/display/ANTLR3/Code+Generation+Targets

* You could be the one implementing it, of course. But that's no trivial task!

like image 58
Bart Kiers Avatar answered Sep 24 '22 15:09

Bart Kiers


Erlang comes with its own parse tools. They use their own syntax though, so you cant take a grammar file from antlr.

like image 43
Christian Avatar answered Sep 22 '22 15:09

Christian