Browse Source

Use character range for integral rule

Samuel W. Flint 4 years ago
parent
commit
6c073d8903
1 changed files with 1 additions and 1 deletions
  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))