Skip to content

Commit

Permalink
Move files around.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Nov 29, 2024
1 parent 2f346f5 commit 05525b5
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ The theory should come up soon.

## Some examples

- [Curry's axioms for λ-calculus](test/curry.cccatt)
- [Curien's categorical combinators](test/curien.cccatt)
- [Curry's axioms for λ-calculus](examples/curry.cccatt)
- [Curien's categorical combinators](examples/curien.cccatt)

## Emacs mode

Expand Down
2 changes: 2 additions & 0 deletions examples/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test:
@dune runtestg
1 change: 1 addition & 0 deletions test/curien.cccatt → examples/curien.cccatt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Categorical combinators
# See Curien, 1986
# https://www.sciencedirect.com/science/article/pii/S001999588680047X

# Generators

Expand Down
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions examples/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(rule
(alias runtest)
(deps curry.cccatt curry-noimplicit.cccatt curien.cccatt)
(action
(progn
(run ../src/cccatt.exe curry.cccatt)
(run ../src/cccatt.exe curry-noimplicit.cccatt)
(run ../src/cccatt.exe curien.cccatt)
)
)
)
14 changes: 0 additions & 14 deletions test/dune

This file was deleted.

File renamed without changes.
11 changes: 11 additions & 0 deletions tests/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(rule
(alias runtest)
(deps test.cccatt implicit.cccatt)
(action
(progn
(run ../src/cccatt.exe test.cccatt)
(run ../src/cccatt.exe negative.cccatt)
(run ../src/cccatt.exe implicit.cccatt)
)
)
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions web/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
(modes js)
(preprocess (pps ppx_blob js_of_ocaml-ppx))
(preprocessor_deps
(file ../test/test.cccatt)
(file ../test/implicit.cccatt)
(file ../test/curry.cccatt)
(file ../test/curien.cccatt)
(file ../tests/test.cccatt)
(file ../tests/implicit.cccatt)
(file ../examples/curry.cccatt)
(file ../examples/curien.cccatt)
)
(libraries js_of_ocaml cccatt)
)
8 changes: 4 additions & 4 deletions web/examples.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let tests = [%blob "../test/test.cccatt"]
let implicit = [%blob "../test/implicit.cccatt"]
let curry = [%blob "../test/curry.cccatt"]
let curien = [%blob "../test/curien.cccatt"]
let tests = [%blob "../tests/test.cccatt"]
let implicit = [%blob "../tests/implicit.cccatt"]
let curry = [%blob "../examples/curry.cccatt"]
let curien = [%blob "../examples/curien.cccatt"]

let get = function
| "tests" -> tests
Expand Down

0 comments on commit 05525b5

Please sign in to comment.