Frontend.Syntax_errorThis is the type of format strings with no %-placeholders. Why? Because we can still include other formatting indicators, including semantic tags used for things like "@{<green>Colored text@}". These strings usually come from the parser.messages text file.
val location : t -> Middle.Location_span.tval kind : t -> stringval pp : Stdlib.Format.formatter -> t -> unitException-based control flow is useful during parsing/lexing. These helpers are used to try to keep all that logic in one place
val unexpected_eof : Middle.Location_span.t -> 'aval unexpected_character : Middle.Location_span.t -> 'aval include_error : string -> Middle.Location_span.t -> 'aval parse_error : styled_text -> Middle.Location_span.t -> 'aval try_with : (unit -> 'a) -> ('a, t) Stdlib.result