Skip to content

Comment on Parsing – REBOL Users Guideparent

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

    (print (multiply (add 1 2) 3))
... will print an answer of 9
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.