Type alias Bag<CTX, PROBLEM>Internal

Bag<CTX, PROBLEM>: Parser.Empty | Parser.AddRight<CTX, PROBLEM> | Parser.Append<CTX, PROBLEM>

Keeps track of the context and problem as they are encountered by the parser.

  • The Empty type is used to end the recursion, never used on its own.
  • The AddRight type is for when our parser encounters a problem.
  • The Append type is only used by oneOfMany to describe errors occurring at the same "level" in the parser.

Type Parameters

  • CTX

  • PROBLEM