diff options
| author | tslil <tslil@posteo.de> | 2026-04-27 22:01:59 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-04-27 22:11:18 +0100 |
| commit | ef3d7a3ce2d6686d37f1b2446d5de31b29f5cd00 (patch) | |
| tree | bba30a5beb1ab1a23e69ee72bf5ed260bd92e386 /src/parser.rs | |
| parent | 9bd859f2a62790e3beca2c20a932040c9db96378 (diff) | |
add tough example
Diffstat (limited to 'src/parser.rs')
| -rw-r--r-- | src/parser.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/parser.rs b/src/parser.rs index 0a7f063..65aa7f4 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -276,6 +276,15 @@ let set Maybe = variant [ #[test] fn test_theories_and_instances() { let src = r#" + let signature OneSet = theory { F :: Set } + + let signature T = theory { + A :: Set, + B :: (x : set-of({ .F = A } .F)) -> Set, + C :: (x : set-of(A)) (b : set-of(B x)) -> Set + } + + let signature Graph = theory { Node :: Set, Edge :: (s : set-of(Node)) (t : set-of(Node)) -> Set |
