aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-10 18:33:20 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-11 19:56:54 +0200
commit66a7758d4838a76a7979420f1674f8fbd664e3f2 (patch)
tree9d2c2dfb227a894016fb91754f5776896f2a1306 /subprojects/frontend/src
parentchore(deps): bump frontend dependencies (diff)
downloadrefinery-66a7758d4838a76a7979420f1674f8fbd664e3f2.tar.gz
refinery-66a7758d4838a76a7979420f1674f8fbd664e3f2.tar.zst
refinery-66a7758d4838a76a7979420f1674f8fbd664e3f2.zip
feat(language): modal parameter types
Diffstat (limited to 'subprojects/frontend/src')
-rw-r--r--subprojects/frontend/src/index.tsx2
-rw-r--r--subprojects/frontend/src/language/problem.grammar2
2 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/frontend/src/index.tsx b/subprojects/frontend/src/index.tsx
index 78e469cd..152c0bf7 100644
--- a/subprojects/frontend/src/index.tsx
+++ b/subprojects/frontend/src/index.tsx
@@ -34,7 +34,7 @@ pred invalidTaxStatus(Person p) <->
34 parent(p, q), 34 parent(p, q),
35 !taxStatus(q, retired). 35 !taxStatus(q, retired).
36 36
37rule createChild(p, newPerson): 37rule createChild(may Person p, must Person newPerson):
38 may children(p, newPerson), 38 may children(p, newPerson),
39 may !equals(newPerson, newPerson) 39 may !equals(newPerson, newPerson)
40==> new q <: newPerson, 40==> new q <: newPerson,
diff --git a/subprojects/frontend/src/language/problem.grammar b/subprojects/frontend/src/language/problem.grammar
index f3794e27..ac0b0ea3 100644
--- a/subprojects/frontend/src/language/problem.grammar
+++ b/subprojects/frontend/src/language/problem.grammar
@@ -51,7 +51,7 @@ ReferenceDeclaration {
51 ";"? 51 ";"?
52} 52}
53 53
54Parameter { RelationName? VariableName } 54Parameter { Modality? RelationName? VariableName }
55 55
56Conjunction { ("," | Literal)+ } 56Conjunction { ("," | Literal)+ }
57 57