فهرست منبع

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))