package logtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Position.BuildSource

Sourcetype t
Sourceval empty : t

Empty builder (position=Stop)

Sourceval to_pos : t -> position

Extract current position

Sourceval of_pos : position -> t

Start from a given position

Sourceval prefix : position -> t -> t

Prefix the builder with the given position

Sourceval suffix : t -> position -> t

Append position at the end

All the following builders add elements to the end of the builder. This is useful when a term is traversed and positions of subterms are needed, since positions are easier to build in the wrong order (leaf-to-root).

Sourceval type_ : t -> t
Sourceval left : t -> t

Add left at the end

Sourceval right : t -> t

Add left at the end

Sourceval body : t -> t
Sourceval head : t -> t
Sourceval arg : int -> t -> t

Arg position at the end

include Interfaces.PRINT with type t := t
Sourceval to_string : t -> string