10 lines
255 B
Elixir
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
|