Packages
xml_parsec
0.1.0
XmlParsec is a library based on [parser combinators](https://en.wikipedia.org/wiki/Parser_combinator), written in pure Elixir.
Current section
Files
Jump to
Current section
Files
lib/xml/helpers.ex
defmodule XML.ParserHelpers do
use Combine.Helpers
alias Combine.ParserState
@moduledoc """
Helper module when working with parser combinators.
"""
defparser lazy(%ParserState{status: :ok} = state, parser_fn) do
(parser_fn.()).(state)
end
end