package logtk

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.6.tar.gz
md5=97cdb2f90468e9e27c7bbe3b4fb160bb
sha512=fee73369f673a91dfa9e265fc69be08b32235e10a495f3af6477d404fcd01e3452a0d012b150f3d7f97c00af2f6045019ad039164bf698f70d771231cc4efe5d

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.