Comment on Parsing – REBOL Users GuideparentComments−draegtun9yI think the Perl 6 example should really use [0-9] instead of \d because it's unlikely that unicode numerals are allowed (in the Common Lisp spec).Anyway neither example fully covers the Common Lisp spec for a number atom (for eg. scientific notation or rationals).−yellowapple9yI don't think covering all of the Common Lisp spec is required to be Greenspun-compliant ;)−draegtun9yIn that case Rebol is already Greenspun-compliant ;-) (print (multiply (add 1 2) 3)) ... will print an answer of 9
Comments
I think the Perl 6 example should really use [0-9] instead of \d because it's unlikely that unicode numerals are allowed (in the Common Lisp spec).
Anyway neither example fully covers the Common Lisp spec for a number atom (for eg. scientific notation or rationals).
I don't think covering all of the Common Lisp spec is required to be Greenspun-compliant ;)
In that case Rebol is already Greenspun-compliant ;-)
... will print an answer of 9