lytlang/lib/lytlang.ex

30 lines
395 B
Elixir
Raw Normal View History

2019-05-11 13:01:39 -05:00
defmodule Lytlang do
@moduledoc """
Documentation for Lytlang.
"""
@doc """
Hello world.
## Examples
iex> Lytlang.hello()
:world
"""
def hello do
:world
end
@spec transpile_file(String.t()) :: String.t()
def transpile_file(file_path) do
file_path
|> File.read!()
|> transpile_block()
end
def transpile_block(s) do
2019-05-11 13:03:38 -05:00
"#{s}"
2019-05-11 13:01:39 -05:00
end
end