Ergo.Context.new

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

Returns a newly initialised Context with an empty input.

Examples

iex> Context.new() %Context{}

Link to this function

new(input, debug \\ false)

Returns a newly initialised Context with input set to the string passed in.

Examples:

iex> Context.new("Hello World") %Context{status: :ok, input: "Hello World", line: 1, col: 1, index: 0, debug: false, tracks: []}