[erlang-questions] BNF/EBNF Grammar for Erlang

Richard Carlsson carlsson.richard@REDACTED
Sun Nov 13 18:44:20 CET 2011


On 2011-11-13 18:26, Ryan Molden wrote:
> As an aside can you give me info/pointers on where to find info on the
> following terminals?
>
> ':-'   This seems to be used around 'rules' (which I have never seen in
> any Erlang program I have looked at, but I am a newb).  Examples or even
> just a name for this syntactic construct would be nice.  My lexer token
> currently calls it RULETHINGY :)
>
> '..'    Never seen this, but it is listed in the YRL file as a
> terminal.  Name and meaning would be nice.
>
> '...'   Never seen this, but it is listed in the YRL file as a
> terminal.  Name and meaning would be nice.


The ':-' rules are something I've never seen in the wild. I think they 
were part of the ancient and obsolete Mnemosyne syntax for making Mnesia 
lookups. Nowadays, QLCs are used instead. You can safely assume that you 
can ignore everything to do with the rules syntax.

    /Richard



More information about the erlang-questions mailing list