elixir.yrl terminal definitions

49 views
Skip to first unread message

Luke Imhoff

unread,
Jul 30, 2014, 10:05:18 PM7/30/14
to elixir-l...@googlegroups.com
I'm trying to convert https://github.com/elixir-lang/elixir/blob/a47751f4de72322118e35e1cfd3aa6b4d9c27c13/lib/elixir/src/elixir_parser.yrl to a grammar used by IntelliJ IDEA's parsers for https://github.com/KronicDeth/intellij-elixir/blob/master/src/org/elixir_lang/Elixir.bnf, but I'm stuck on how to convert the Terminals (https://github.com/elixir-lang/elixir/blob/a47751f4de72322118e35e1cfd3aa6b4d9c27c13/lib/elixir/src/elixir_parser.yrl#L26-L37).  I can't find where in the elixir source or erlang/otp source the certain terminals, like number, signed_numner, bin_string, list_string, and sigil are defined.  Does anyone where these are defined?  I assume it's something built into yecc that I'm missing.

José Valim

unread,
Jul 31, 2014, 3:06:35 AM7/31/14
to elixir-l...@googlegroups.com
Those are defined in Elixir's tokenizer, which is written in Erlang:




José Valim
Skype: jv.ptec
Founder and Lead Developer


On Thu, Jul 31, 2014 at 4:05 AM, Luke Imhoff <kroni...@gmail.com> wrote:
I'm trying to convert https://github.com/elixir-lang/elixir/blob/a47751f4de72322118e35e1cfd3aa6b4d9c27c13/lib/elixir/src/elixir_parser.yrl to a grammar used by IntelliJ IDEA's parsers for https://github.com/KronicDeth/intellij-elixir/blob/master/src/org/elixir_lang/Elixir.bnf, but I'm stuck on how to convert the Terminals (https://github.com/elixir-lang/elixir/blob/a47751f4de72322118e35e1cfd3aa6b4d9c27c13/lib/elixir/src/elixir_parser.yrl#L26-L37).  I can't find where in the elixir source or erlang/otp source the certain terminals, like number, signed_numner, bin_string, list_string, and sigil are defined.  Does anyone where these are defined?  I assume it's something built into yecc that I'm missing.

--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages