package logtk

  1. Overview
  2. Docs
Core types and algorithms for logic

Install

Dune Dependency

Authors

Maintainers

Sources

1.5.1.tar.gz
md5=cc320f66f10555c54822da624419e003
sha512=f8d5f7a5ae790bf0388d74261673803cf375f91f92f7b413b70db1ce5841ef55343a208f98727c8551d66f1840ab892f1c0c943a34861d14d79ce469b235a2f2

doc/logtk.parsers/Logtk_parsers/Parsing_utils/index.html

Module Logtk_parsers.Parsing_utilsSource

Utils for Parsing in various Formats (High-Level Interface)

This module provides functions to parse a file and guess its syntax (from its extension) in a convenient way.

To parse a file file_name into a sequence of statements, the simplest way is:

  let fmt = guess_input file_name in
  parse_file fmt file_name
Sourcetype 'a or_error = ('a, string) CCResult.t
Sourceval parse_tptp : string -> Logtk.UntypedAST.statement Iter.t or_error

Parse the given file as TPTP

Sourceval parse_tip : string -> Logtk.UntypedAST.statement Iter.t or_error

Parse the given file as TIP

Sourceval guess_input : string -> Logtk.Input_format.t

Guess input from file extension

Sourceval input_of_file : string -> Logtk.Input_format.t

Choose input for this file based on Options.input and guess_input. This is the recommended way of picking the input format for a given file.

parse_file fmt file parses the file using the parser for the given input format.

OCaml

Innovation. Community. Security.