summaryrefslogtreecommitdiff
path: root/vikalpa.scm
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2021-09-15 15:15:25 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2021-09-15 15:15:25 +0900
commit4f950720df980352964c87abf8333a5b562ee231 (patch)
treef324475a3b4a1f67904c1963f606f4916d2b420b /vikalpa.scm
parentf5879492135a41edd1f227607dcbc8d0c25c5c3c (diff)
Rename syntax from `set` to `=`.
Diffstat (limited to 'vikalpa.scm')
-rw-r--r--vikalpa.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/vikalpa.scm b/vikalpa.scm
index eadd2a0..290b90d 100644
--- a/vikalpa.scm
+++ b/vikalpa.scm
@@ -741,10 +741,10 @@
(define (command-option? x)
(and (pair? x)
(case (car x)
- ((set) (and (list? x)
- (= 3 (length x))
- (variable? (list-ref x 1))
- (expression? (list-ref x 2))))
+ ((=) (and (list? x)
+ (= 3 (length x))
+ (variable? (list-ref x 1))
+ (expression? (list-ref x 2))))
(else #f))))
(define (command-name x)
@@ -815,7 +815,7 @@
(receive (env)
(parse-options/theorem (cdr ops) fail)
(case (caar ops)
- ((set)
+ ((=)
(let ((op (car ops)))
(cons (cons (list-ref op 1)
(list-ref op 2))
@@ -1371,7 +1371,7 @@
(('rewrite _ _ . command-ops)
(for-each (lambda (x)
(match x
- (('set var expr)
+ (('= var expr)
(validate-expression sys
`(define-proof ,(get-name d))
(get-variables d)