Packages

XmlParsec is a library based on [parser combinators](https://en.wikipedia.org/wiki/Parser_combinator), written in pure Elixir.

Current section

Files

Jump to
xml_parsec lib xml helpers.ex
Raw

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