Skip to content

Commit

Permalink
add CrossRef
Browse files Browse the repository at this point in the history
  • Loading branch information
gfngfn committed Sep 12, 2024
1 parent 2bd3a5d commit fbaa75a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib-satysfi/packages/stdlib/stdlib.0.0.1/src/cross-ref.satyg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module CrossRef :> sig
type key = string
type data = string
val register : key -> data -> unit
val get : key -> option data
val probe : key -> option data
end = struct

type key = string

type data = string

val register = register-cross-reference %PRIMITIVE

val get = get-cross-reference %PRIMITIVE

val probe = probe-cross-reference %PRIMITIVE

end
9 changes: 9 additions & 0 deletions lib-satysfi/packages/stdlib/stdlib.0.0.1/src/stdlib.satyh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use PaperSize
use Deco
use HDecoSet
use VDecoSet
use CrossRef

module Stdlib :> sig
% Basic
Expand Down Expand Up @@ -310,6 +311,13 @@ module Stdlib :> sig
val paper : deco-set
val quote-round : length -> length -> color -> deco-set
end
module CrossRef : sig
type key = string
type data = string
val register : key -> data -> unit
val get : key -> option data
val probe : key -> option data
end
end = struct
include Basic
module Int = Int
Expand All @@ -335,4 +343,5 @@ end = struct
module Deco = Deco
module HDecoSet = HDecoSet
module VDecoSet = VDecoSet
module CrossRef = CrossRef
end

0 comments on commit fbaa75a

Please sign in to comment.