浏览代码

Use character range for integral rule

Samuel W. Flint 5 年之前
父节点
当前提交
6c073d8903
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xcsp-lang.lisp

+ 1 - 1
xcsp-lang.lisp

@@ -6,7 +6,7 @@
 
 ;;; "lcsp-xcsp-lang" goes here.
 
-(defrule integral (and (? #\-) (+ (or #\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9)))
+(defrule integral (and (? #\-) (+ (character-ranges (#\0 #\9))))
   (:text t)
   (:function parse-integer))