8

I'm looking to create an Intellij IDEA language support plugin for Erlang.

The first and biggest problem I've had is in making the JFlex Erlang syntax definition.

Does anyone know where can I get the EBNF or BNF for Erlang?

Philip Conrad
  • 1,451
  • 1
  • 13
  • 22
unorsk
  • 9,371
  • 10
  • 36
  • 42

2 Answers2

7

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

Jacob Krall
  • 28,341
  • 6
  • 66
  • 76
1

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

a2800276
  • 3,272
  • 22
  • 33