@@ -6,13 +6,13 @@ defmodule ElixirScript do
66 require Logger
77
88 @ moduledoc """
9- Transpiles Elixir into JavaScript.
9+ Translates Elixir into JavaScript.
1010
11- All transpile functions return a list of
11+ All compile functions return a list of
1212 transpiled javascript code or a tuple consisting of
1313 the file name for the code and the transpiled javascript code.
1414
15- All transpile functions also take an optional opts parameter
15+ All compile functions also take an optional opts parameter
1616 that controls transpiler output.
1717
1818 Available options are:
@@ -25,20 +25,20 @@ defmodule ElixirScript do
2525 """
2626
2727 @ doc """
28- Transpiles the given Elixir code string
28+ Compiles the given Elixir code string
2929 """
30- @ spec transpile ( binary , Dict . t ) :: [ binary | { binary , binary } ]
31- def transpile ( elixir_code , opts \\ [ ] ) do
30+ @ spec compile ( binary , Dict . t ) :: [ binary | { binary , binary } ]
31+ def compile ( elixir_code , opts \\ [ ] ) do
3232 elixir_code
3333 |> Code . string_to_quoted!
34- |> transpile_quoted ( opts )
34+ |> compile_quoted ( opts )
3535 end
3636
3737 @ doc """
38- Transpiles the given Elixir code in quoted form
38+ Compiles the given Elixir code in quoted form
3939 """
40- @ spec transpile_quoted ( Macro . t , Dict . t ) :: [ binary | { binary , binary } ]
41- def transpile_quoted ( quoted , opts \\ [ ] ) do
40+ @ spec compile_quoted ( Macro . t , Dict . t ) :: [ binary | { binary , binary } ]
41+ def compile_quoted ( quoted , opts \\ [ ] ) do
4242 include_path = Dict . get ( opts , :include_path , false )
4343 root = Dict . get ( opts , :root )
4444 env = Dict . get ( opts , :env , custom_env )
@@ -57,10 +57,10 @@ defmodule ElixirScript do
5757 end
5858
5959 @ doc """
60- Transpiles the elixir files found at the given path
60+ Compiles the elixir files found at the given path
6161 """
62- @ spec transpile_path ( binary , Dict . t ) :: [ binary | { binary , binary } ]
63- def transpile_path ( path , opts \\ [ ] ) do
62+ @ spec compile_path ( binary , Dict . t ) :: [ binary | { binary , binary } ]
63+ def compile_path ( path , opts \\ [ ] ) do
6464 include_path = Dict . get ( opts , :include_path , false )
6565 root = Dict . get ( opts , :root )
6666 env = Dict . get ( opts , :env , custom_env )
0 commit comments