summaryrefslogtreecommitdiff
path: root/src/expr/mkkind
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/mkkind')
-rwxr-xr-xsrc/expr/mkkind21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/expr/mkkind b/src/expr/mkkind
index f8432466d..02e0f50bf 100755
--- a/src/expr/mkkind
+++ b/src/expr/mkkind
@@ -77,10 +77,15 @@ theory_enum=
theory_descriptions=
function theory {
- # theory T header
+ # theory ID T header
lineno=${BASH_LINENO[0]}
+ if $seen_theory; then
+ echo "$kf:$lineno: error: multiple theories defined in one file !?" >&2
+ exit 1
+ fi
+
# this script doesn't care about the theory class information, but
# makes does make sure it's there
seen_theory=true
@@ -106,6 +111,20 @@ function theory {
"
}
+function alternate {
+ # alternate ID name T header
+
+ lineno=${BASH_LINENO[0]}
+
+ if $seen_theory; then
+ echo "$kf:$lineno: error: multiple theories defined in one file !?" >&2
+ exit 1
+ fi
+
+ seen_theory=true
+ seen_endtheory=true
+}
+
function properties {
# rewriter class header
lineno=${BASH_LINENO[0]}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback