tags:

views:

700

answers:

3
+4  Q: 

Erlang syntax

Hi folks, I'm going to create Erlang language support plugin for an Intellij Idea. The big and first problem I have is in the JFlex erlang syntax definition. Does anybody know where can I get EBNF or BNF for Erlang?

+5  A: 

Why not go straight to the source? The Erlang 4.7 specification lists productions in a grammar.

Jacob
A: 

Sure. That was the first thing I thought about and I did. But, as I can see there should be lot of work done to make ebnf from this specification. And probably already exists ready solution that I can simply reuse.

Andrew Dashin
A: 

Have a look at lib/compiler/src/core_parse.yrl in the otp source distribution.