Current section
Files
Jump to
Current section
Files
lib/gen_dsl.ex
defmodule GenDSL do
@moduledoc """
Documentation for `GenDSL`.
"""
import GenDSL.Parser
@doc """
Hello world.
## Examples
iex> GenDSL.hello()
:world
"""
def hello do
:world
end
def generate(filename) do
filename
|> read_blueprint()
|> case do
{:ok, blueprint} ->
blueprint
|> process_blueprint()
|> execute_blueprint()
{:error, reason} ->
IO.puts(reason)
end
end
end