package elpi
Module API.UtilsSource
A type error (in principle ruled out by elpi-checker.elpi)
link between OCaml and LP lists. Note that 1,2|X is not a valid * OCaml list!
The body of an assignment, if any (LOW LEVEL). * Use look and forget about this API since the term you get * needs to be moved and/or reduced, and you have no API for this.
Source
val clause_of_term :
?name:string ->
?graft:([ `After | `Before | `Replace | `Remove ] * string) ->
depth:int ->
Ast.Loc.t ->
Data.term ->
Ast.programHackish, in particular the output should be a compiled program
Source
val term_to_raw_term :
State.t ->
Compile.program ->
?ctx:RawData.constant Ast.Scope.Map.t ->
depth:int ->
Ast.Term.t ->
Data.termHackish
Lifting/restriction/beta (LOW LEVEL, don't use)
Source
val map_acc :
(State.t -> 't -> State.t * 'a * Conversion.extra_goals) ->
State.t ->
't list ->
State.t * 'a list * Conversion.extra_goalsreadback/embed on lists