lytlang/lib/lytlang.ex
2019-05-11 13:01:39 -05:00

29 lines
398 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
"ayy#{s}"
end
end