Ergo.NumericParsers.uint
You're seeing just the function
uint
, go back to Ergo.NumericParsers module for more information.
Link to this function
uint(opts \\ [])
The unit
parser matches a series of at least one digit and returns the
integer value of the digits.
Examples
iex> alias Ergo.{Context, Parser}
iex> import Ergo.NumericParsers
iex> context = Context.new("2345")
iex> parser = uint()
iex> Parser.call(parser, context)
%Context{status: :ok, ast: 2345, char: ?5, index: 4, col: 5}