Skip to content

Commit

Permalink
Module fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KabirSamsi committed Oct 27, 2024
1 parent 844e193 commit 638ef35
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
29 changes: 14 additions & 15 deletions semantics/lib/program.ml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
(** A module representation for Rio program forms. *)
module Program = struct
type clss = string
type set = Class of clss | Union of set list

type stream =
(* Set To Stream *)
| Fifo of set
| EarliestDeadline of set
| ShortestJobNext of set
(* Stream To Stream *)
| RoundRobin of stream list
| Strict of stream list
| WeightedFair of stream list * int list
type clss = string
type set = Class of clss | Union of set list

(* Exportable type *)
type prog = stream
end
type stream =
(* Set To Stream *)
| Fifo of set
| EarliestDeadline of set
| ShortestJobNext of set
(* Stream To Stream *)
| RoundRobin of stream list
| Strict of stream list
| WeightedFair of stream list * int list

(* Exportable type *)
type prog = stream
2 changes: 1 addition & 1 deletion semantics/lib/semantics.ml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module type SemanticsSig = sig
end

(** An implementation for Rio's operational semantics. *)
module Semantics (Pkt : Packet) (Q : Queue with type elt = Pkt.t) = struct
module SemanticsImpl (Pkt : Packet) (Q : Queue with type elt = Pkt.t) = struct
type set = Program.set
type prog = Program.prog
type pkt = Pkt.t
Expand Down
4 changes: 2 additions & 2 deletions semantics/test/test_semantics.ml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ module SemanticsTester
and type ord = float)
(Q : Queue.Queue with type elt = Pkt.t) =
struct
include Program.Program
module S = Semantics.Semantics (Pkt) (Q)
include Program
module S = Semantics.SemanticsImpl (Pkt) (Q)

exception QueryFormatException

Expand Down

0 comments on commit 638ef35

Please sign in to comment.