lytlang/lib/lytlang.ex

30 lines
395 B
Elixir

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
"#{s}"
end
end