29 lines
398 B
Elixir
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
|