AltErgoParsers.Parsersmodule type PARSER_INTERFACE = sig ... endThe interface that should be provided by every lexer/parser of an input language
val register_parser : lang:string -> (module PARSER_INTERFACE) -> unitRegisters a new 'parser' for the given extension/language
val parse_file : ?lang:string -> Stdlib.Lexing.lexbuf -> AltErgoLib.Parsed.fileParses the given file (lexbuf) using the appropriate 'parser' depending on the given language. If no language is given, the default one is used.
val parse_expr :
?lang:string ->
Stdlib.Lexing.lexbuf ->
AltErgoLib.Parsed.lexprParses the given expression (lexbuf) using the appropriate 'parser' depending on the given language. If no language is given, the default one is used.
val parse_trigger :
?lang:string ->
Stdlib.Lexing.lexbuf ->
AltErgoLib.Parsed.lexpr list * boolParses the given trigger (lexbuf) using the appropriate 'parser' depending on the given language. If no language is given, the default one is used.
val parse_problem :
filename:string ->
preludes:string list ->
AltErgoLib.Parsed.fileParses the given input file and eventual preludes. Parsers are chosen depending on the extension of different files.