mirror of
https://github.com/ProgramSnail/pass_strategy_synthesis.git
synced 2026-03-12 02:57:09 +00:00
ocanren type syntax test file, migration to 4.14.2 (with pinned ocanren from repo)
This commit is contained in:
parent
30f052b1b1
commit
e2dcf6c2a1
3 changed files with 44 additions and 3 deletions
16
lib/test.ml
Normal file
16
lib/test.ml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
open GT
|
||||
open OCanren
|
||||
|
||||
module Tag = struct
|
||||
[@@@warning "-26-27-32-33-34-35-36-37-38-39-60-66-67"]
|
||||
ocanren type tag = Ref | Value
|
||||
|
||||
module Test = struct
|
||||
|
||||
@type answer = logic GT.list with show
|
||||
|
||||
let _ =
|
||||
Printf.printf "%s" @@ show(answer) (Stream.take (run q (fun q -> ocanren {q === Ref})
|
||||
(fun q -> q#reify reify)))
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue