Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when transpiling funtion call with escaped atoms in name #14

Open
eksperimental opened this issue Mar 27, 2021 · 1 comment
Open

Comments

@eksperimental
Copy link
Contributor

-module(debug).
-compile(export_all).

function_names() ->
  '__function_names__'().

'__function_names__'() ->
  'foo'.

transpiles to

defmodule :debug do
  use Bitwise
  @compile :export_all
  def function_names() do
    '__function_names__'()
  end

  def __function_names__() do
    :foo
  end

end

which errors,

$ elixirc debug.ex

== Compilation error in file debug.ex ==
** (SyntaxError) debug.ex:5:25: syntax error before: '('
@eksperimental
Copy link
Contributor Author

eksperimental commented Mar 27, 2021

@marianoguerra there are a few more issues, but I will see if they are fixed once these last two bugs are covered. I will submit them if they are not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant