package alt-ergo-parsers

  1. Overview
  2. Docs
The Alt-Ergo SMT prover parser library

Install

Dune Dependency

Authors

Maintainers

Sources

alt-ergo-2.6.0.tbz
sha256=1269311af25278a466892ba878cc888ba59f177f53dd03f12a2c623b03fcf37e
sha512=8a841e1f295e889fa9cb95aa4021bbb481d73279e99512c2afb3510e1f6c9d367113ee6bd3a90bc51111fa3e766a302633e9d5d18fde7660b139cd19a271eb23

doc/alt-ergo-parsers/AltErgoParsers/Parsers/index.html

Module AltErgoParsers.ParsersSource

Sourcemodule type PARSER_INTERFACE = sig ... end

The interface that should be provided by every lexer/parser of an input language

Sourceval register_parser : lang:string -> (module PARSER_INTERFACE) -> unit

Registers a new 'parser' for the given extension/language

Sourceval parse_file : ?lang:string -> Lexing.lexbuf -> AltErgoLib.Parsed.file

Parses the given file (lexbuf) using the appropriate 'parser' depending on the given language (set from extension) or the format set with the --input option. If no output format is set with the --output option, we set it depending on the extension / input format. by default if an input format is set results will be printed according this input format.

  • raises Errors.Parser_error
Sourceval parse_expr : ?lang:string -> Lexing.lexbuf -> AltErgoLib.Parsed.lexpr

Parses the given expression (lexbuf) using the appropriate 'parser' depending on the given language. If no language is given, the default one is used.

  • raises Errors.Parser_error
Sourceval parse_trigger : ?lang:string -> Lexing.lexbuf -> AltErgoLib.Parsed.lexpr list * bool

Parses the given trigger (lexbuf) using the appropriate 'parser' depending on the given language. If no language is given, the default one is used.

  • raises Errors.Parser_error
Sourceval parse_problem : filename:string -> preludes:string list -> AltErgoLib.Parsed.file

Parses the given input file and eventual preludes. Parsers are chosen depending on the extension of different files.

  • raises Errors.Error
  • raises Parsing.Parse_Error
Sourceval parse_problem_as_string : content:string -> format:string option -> AltErgoLib.Parsed.file

Parses the given input file as a string. Parser is chosen depending on the given format or the input_format set.

  • raises Errors.Error
  • raises Parsing.Parse_Error
OCaml

Innovation. Community. Security.