ignatov / intellij-erlang

Erlang IDE
https://www.jetbrains.com/help/idea/2018.2/getting-started-with-erlang.html
Other
732 stars 121 forks source link

support for leex (.xrl) / yecc (.yrl) files #92

Open diegollarrull opened 11 years ago

diegollarrull commented 11 years ago

leex (http://www.erlang.org/doc/man/leex.html) is a regular expression based lexical analyzer generator for Erlang, similar to lex or flex.

yecc (http://www.erlang.org/doc/man/yecc.html) is an LALR-1 parser generator for Erlang, similar to yacc. Takes a BNF grammar definition as input, and produces Erlang code for a parser.

These 2 tools are the ultimate ones if one wishes to write any DSL in Erlang, and since erlIDE supports yecc files, it would be a nice feature to have in IntelliJ Idea.

andrzejsliwa commented 11 years ago

also .peg format (Packrat) is missing (from neotoma https://github.com/seancribbs/neotoma/blob/master/priv/neotoma_parse.peg - grammar for neotoma).

together .xrl/yrl with .peg will be complete for Erlang parsers

diegollarrull commented 9 years ago

Hi there, any updates on this?

ignatov commented 9 years ago

Hi @diegollarrull, nothing yet because we're very limited right now, but if you'd like you can start with grammars above and transform them to Grammar-Kit format. After I'll point you how to create a new language, file type, etc.

BTW, it's very funny ;)