Discussion:
[erlang-questions] Erlang grammer definition
unknown
12 years ago
Permalink
Hi. I am aware of yecc, and leex, which I do use. Though, I am actually in need of a yacc/bison /lexx/flexx grammer definition for the erlang language itself. This sounds like the sort of thing that likely already exists out there in the wild.


---
C. Thomas Stover
Sr. Software Engineer
Alert Logic, Inc.

T 713.484.8383 ext. 2340
E tstover<mailto:flast>
Security ? Compliance ? Cloud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131206/c17c5ab4/attachment.html>
unknown
12 years ago
Permalink
This is the YECC definition (
https://github.com/erlang/otp/blob/master/lib/stdlib/src/erl_parse.yrl)
Hopefully, you can adapt it for the tool of your choice.

Aggelos
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131207/249692c2/attachment.html>
unknown
12 years ago
Permalink
This should help. https://github.com/antlr/grammars-v4/tree/master/erlang
It is an ANTLR4 grammar of Erlang R16B02. Lexer and parser.


Cheers,
--
Pierre Fenoll
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131207/7b65a801/attachment.html>
Loading...