Pathex.QuotedParser (Pathex v1.3.0) View Source

Utils module for parsing paths created with Pathex.path/2

Link to this section Summary

Functions

Parses chained binary operator call into list of operands For example

Link to this section Functions

Specs

Link to this function

parse_composition(other, symbol)

View Source

Specs

parse_composition(Macro.t(), atom()) :: [Macro.t()]

Parses chained binary operator call into list of operands For example:

iex> quoted = quote(do: 1 ~> 2 ~> 3)
iex> parse_composition(quote, :"~>")
[1, 2, 3]