Ostap.ReasonSourcePredefined implementation of reason type to describe various errors happened during parsing.
Interior type.
type retrieved =
(Msg.Locator.t * [ `Msg of Msg.t | `Comment of string * 'a ] list) list as 'aExterior representation
Main class. Keeps track on error reasons and comments. Takes an ordinary message on creation.
Standard printer for optional reason. The first two arguments have the following meanings:
`All makes printer show all the messages while `First n asks only for n first of them; this is desirable since there can potentially be many parasite messages; `Acc asks printer to output messages in ascending order w.r.t. locator information while `Desc asks to print them in descending order.