Ergo.Parsers.uint

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

The unit parser matches a series of at least one digit and returns the integer value of the digits.

Examples

iex> alias Ergo.Context
iex> import Ergo.Parsers
iex> context = Context.new("2345")
iex> parser = uint()
iex> parser.(context)
%Context{status: :ok, ast: 2345, char: ?5, index: 4, col: 5}