Skip to content

Commit

Permalink
Apply lexer/parser rename from asummers#54
Browse files Browse the repository at this point in the history
  • Loading branch information
christhekeele committed Apr 14, 2024
2 parents 4e5e4d0 + 0af59ab commit 9be1974
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ erl_crash.dump
*.ez
erlex-*.tar
.elixir_ls
src/parser.erl
src/lexer.erl
src/erlex_parser.erl
src/erlex_lexer.erl

/priv/plts/
mix.lock
4 changes: 2 additions & 2 deletions lib/erlex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule Erlex do

defp lex(str) do
try do
{:ok, tokens, _} = :lexer.string(str)
{:ok, tokens, _} = :erlex_lexer.string(str)
tokens
rescue
_ ->
Expand All @@ -52,7 +52,7 @@ defmodule Erlex do

defp parse(tokens) do
try do
{:ok, [first | _]} = :parser.parse(tokens)
{:ok, [first | _]} = :erlex_parser.parse(tokens)
first
rescue
_ ->
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ defmodule Erlex.MixProject do
"mix.exs",
"README.md",
"LICENSE.md",
"src/lexer.xrl",
"src/parser.yrl"
"src/erlex_lexer.xrl",
"src/erlex_parser.yrl"
],
maintainers: @maintainers,
licenses: ["Apache-2.0"],
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 9be1974

Please sign in to comment.