Ergo.Parsers.digits

You're seeing just the function digits, go back to Ergo.Parsers module for more information.

The digits parser matches a series of at least one digit and returns an enumeration of the digits.

Examples

iex> alias Ergo.{Context, Parsers}
iex> context = Context.new("2345")
iex> parser = Parsers.digits()
iex> assert %Context{status: :ok, ast: [2, 3, 4, 5]} = parser.(context)