Ergo.Terminals.literal

You're seeing just the function literal, go back to Ergo.Terminals module for more information.
Link to this function

literal(s, opts \\ [])

The literal/1 parser matches the specified string character by character.

Examples

iex> alias Ergo.Context
iex> import Ergo.Terminals
iex> parser = literal("Hello")
iex> Ergo.parse(parser, "Hello World")
%Context{status: :ok, input: " World", ast: "Hello", char: ?o, index: 5, line: 1, col: 6}

iex> alias Ergo.Context
iex> import Ergo.Terminals
iex> parser = literal("Hellx")
iex> Ergo.parse(parser, "Hello World")
%Context{status: {:error, :unexpected_char}, message: "Expected: x Actual: o [in literal \"Hellx\"]", input: "o World", ast: [?l, ?l, ?e, ?H], char: ?l, index: 4, line: 1, col: 5}