package logtk
Core types and algorithms for logic
Install
Dune Dependency
Authors
Maintainers
Sources
2.1.tar.gz
md5=e72de75e9f0f87da9e6e8c0a4d4c89f9
sha512=81becfc9badd686ab3692cd9312172aa4c4e3581b110e81770bb01e0ffbc1eb8495d0dd6d43b98f3d06e6b8c8a338174c13ebafb4e9849a3ddf89f9a3a72c287
doc/logtk.parsers/Logtk_parsers/Parsing_utils/index.html
Module Logtk_parsers.Parsing_utils
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
type 'a or_error = ('a, string) CCResult.t
val parse_tptp : string -> Logtk.UntypedAST.statement Iter.t or_error
Parse the given file as TPTP
val parse_tip : string -> Logtk.UntypedAST.statement Iter.t or_error
Parse the given file as TIP
val guess_input : string -> Logtk.Input_format.t
Guess input from file extension
val 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.
val parse_file :
Logtk.Input_format.t ->
string ->
Logtk.UntypedAST.statement Iter.t or_error
parse_file fmt file
parses the file using the parser for the given input format.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page