logtk

Core types and algorithms for logic
Library logtk.parsers

Utils for TIP

module A = Tip_ast
type parser_res = ( A.statement Iter.t, string ) CCResult.t
type 'a parser_ = 'a -> parser_res
val parse_lexbuf : Lexing.lexbuf parser_

parse lexbuf.

  • parameter recursive

    if true, parse includes too, relative to current dir. Default true.

  • parameter cache

    parse cache to use if recursive = true

val parse_stdin : unit parser_

parse stdin. Does not expand includes.

val parse_file : string parser_

parse_file ~recursive file parses file

  • parameter recursive

    if true, recursively parse includes. Default true.

  • parameter cache

    parse cache to use if recursive = true

Translation to the native format, removing matching, if, etc.