Skip to content

Commit

Permalink
Simulation -> Simulator + dune project comment
Browse files Browse the repository at this point in the history
  • Loading branch information
polybeandip committed Aug 9, 2024
1 parent 1de81ef commit 3a5d1e8
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dsl/dsl.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ depends: [
"core_kernel"
"pcap-format"
"hex"
"csv"
"mmap"
"csv"
"odoc" {with-doc}
]
build: [
Expand Down
14 changes: 13 additions & 1 deletion dsl/dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,17 @@
(name dsl)
(synopsis "DSL for Programmable Packet Scheduling")
(description "TBD")
(depends ocaml dune ounit2 menhir core_kernel pcap-format hex csv mmap))
(depends
ocaml
dune
ounit2
menhir
; libraries for Simulator
core_kernel
pcap-format
hex
mmap
csv
)
)

4 changes: 2 additions & 2 deletions dsl/simulation/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(library
(name Simulation)
(public_name dsl.simulation)
(name Simulator)
(public_name dsl.simulator)
(libraries dsl.frontend core_kernel.fheap pcap-format hex csv mmap)
(preprocess
(pps ppx_cstruct)))
2 changes: 1 addition & 1 deletion dsl/tests/compilation.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open Simulation
open Simulator
open OUnit2

let fcfs_flow, two_then_three, strict_flow, wfq_flow =
Expand Down
2 changes: 1 addition & 1 deletion dsl/tests/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(tests
(names parsing compilation)
(libraries dsl.frontend dsl.simulation ounit2))
(libraries dsl.frontend dsl.simulator ounit2))
2 changes: 1 addition & 1 deletion dsl/tests/util.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
open Frontend
open Simulation
open Simulator

let prefix = "../../../../"
let parse filename = prefix ^ filename |> Parser.parse_file |> Policy.of_program
Expand Down

0 comments on commit 3a5d1e8

Please sign in to comment.