Selaa lähdekoodia

Use character range for integral rule

Samuel W. Flint 5 vuotta sitten
vanhempi
commit
6c073d8903
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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))