-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
251 changed files
with
511 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
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.
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.
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.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
...books/clause-and-effect/01-party-pairs.ch → ...books/clause-and-effect/01-party-pairs.ch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
14 changes: 7 additions & 7 deletions
14
...ks/clause-and-effect/02-drinking-pairs.ch → ...ks/clause-and-effect/02-drinking-pairs.ch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
37 changes: 37 additions & 0 deletions
37
docs/examples/books/clause-and-effect/03-affordable-journeys.ch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
relation Border("sussex", "kent") | ||
relation Border("sussex", "surrey") | ||
relation Border("surrey", "kent") | ||
relation Border("hampshire", "sussex") | ||
relation Border("hampshire", "surrey") | ||
relation Border("hampshire", "berkshire") | ||
relation Border("berkshire", "surrey") | ||
relation Border("wiltshire", "hampshire") | ||
relation Border("wiltshire", "berkshire") | ||
|
||
relation Adjacent(x, y) | ||
---------------- border { | ||
Border(x, y) | ||
} | ||
|
||
relation Adjacent(x, y) | ||
---------------- symmetry { | ||
Border(y, x) | ||
} | ||
|
||
relation Affordable(x, y) | ||
-------------------- { | ||
Adjacent(x, z) | ||
Adjacent(z, y) | ||
} | ||
|
||
print find to_kent { | ||
Affordable(to_kent, "kent") | ||
} | ||
|
||
print find to_sussex { | ||
Affordable("sussex", to_sussex) | ||
} | ||
|
||
print find [x, y] { | ||
Affordable(x, y) | ||
} |
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
docs/examples/books/clause-and-effect/04-acyclic-directed-graph.ch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
relation Edge("g", "h") | ||
relation Edge("g", "d") | ||
relation Edge("e", "d") | ||
relation Edge("h", "f") | ||
relation Edge("e", "f") | ||
relation Edge("a", "e") | ||
relation Edge("a", "b") | ||
relation Edge("b", "f") | ||
relation Edge("b", "c") | ||
relation Edge("f", "c") | ||
|
||
relation Path(x, x) | ||
------------ {} | ||
|
||
relation Path(x, y) | ||
------------ { | ||
Edge(x, z) | ||
Path(z, y) | ||
} | ||
|
||
print find x { | ||
Path("g", x) | ||
} | ||
|
||
print find x { | ||
Path(x, "h") | ||
} | ||
|
||
print find [x, y] { | ||
Path(x, y) | ||
} |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
docs/books/clause-and-effect/05-member.ch → ...ples/books/clause-and-effect/05-member.ch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
.../clause-and-effect/06-length-of-a-list.ch → .../clause-and-effect/06-length-of-a-list.ch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...clause-and-effect/08-maximum-of-a-list.ch → ...clause-and-effect/08-maximum-of-a-list.ch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
...and-effect/09-searching-a-cyclic-graph.ch → ...and-effect/09-searching-a-cyclic-graph.ch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.