* natset.el (natset-gen-ccl-branch256): New function.
1998-08-23 Tanaka Akira <akr@jaist.ac.jp>
+ * Makefile (clean): Delete rule for cleaning tl.
+
+ * natset.el (natset-gen-ccl-branch256): New function.
+
+1998-08-23 Tanaka Akira <akr@jaist.ac.jp>
+
* Makefile (check): New rule.
* TESTPAT: Add batch testing facility.
clean:
-$(RM) $(GOMI)
- cd ../tl && make clean
tar:
((read r0)
(r2 += 1)
,(apply
- 'natset-gen-ccl-branch
+ 'natset-gen-ccl-branch ; 'natset-gen-ccl-branch256 produce quote big codes.
'r0
'(end)
(mapcar
((= (car ns) 0) (natset-gen-pred-exp-internal (cdr ns) var nil 0))
(t (natset-gen-pred-exp-internal ns var t 0))))
+(defun natset-gen-ccl-branch256 (reg fail &rest clauses)
+ (let ((i 255) tmp blocks)
+ (while (<= 0 i)
+ (setq blocks (cons
+ (if (setq tmp (natset-assoc i clauses))
+ (cdr tmp)
+ fail)
+ blocks)
+ i (1- i)))
+ `(branch ,reg ,@blocks)))
+
(defun natset-gen-ccl-branch (reg fail &rest clauses)
(let* ((natsets (mapcar 'car clauses)))
(let ((range (apply 'natset-union natsets)) tmp)