View Source ElixirST.Parser (ElixirST v0.8.3)
Parses an input string to session types (as Elixir data).
Summary
Functions
Parses a string into a session type data structure
Functions
@spec parse(bitstring()) :: session_type()
Parses a string into a session type data structure
Example
iex> s = "rec Y.(+{!Hello(number, [{boolean, atom}]).Y, !Ok()})"
...> session_type = ElixirST.Parser.parse(s)
...> ElixirST.ST.st_to_string(session_type)
"rec Y.(+{!Hello(number, [{boolean, atom}]).Y, !Ok()})"