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 to_grace :
?printed_filename:string ->
?code:string ->
t ->
'a Grace.Diagnostic.tException-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 : ?note:string -> string -> Middle.Location_span.t -> 'aval parse_error : styled_text -> Middle.Location_span.t -> 'aval try_with : (unit -> 'a) -> ('a, t) Stdlib.result