Skip to content

Loading…

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

Open
diegollarrull opened this Issue · 3 comments

3 participants

@diegollarrull

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

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

Hi there, any updates on this?

@ignatov
Owner

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.