lytlang/lib/parser.ex
Daniel Flanagan 7d5d4f1080 WIP
2019-06-16 00:55:27 -05:00

10 lines
255 B
Elixir

defmodule Lytlang.Parser do
@doc """
Attempts to tokenize an input string to start_tag, end_tag, and char
"""
@spec parse(binary) :: list
def parse(input) do
{:ok, tokens, _} = input |> to_char_list |> :lytlang.string()
tokens
end
end