[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] ANNOUNCE: q-lang egg version 1.0 for Chicken Scheme avai
[Chicken-users] ANNOUNCE: q-lang egg version 1.0 for Chicken Scheme available!
Fri, 29 Sep 2006 16:38:30 -0400
This egg (Chicken Scheme library) makes available the facilities of the
Q language to Chicken programmers. Q is an eager functional language
based on equational term rewriting.
The egg is temporarily available at
http://www.ccil.org/~cowan/temp/q-lang.egg. Chicken admins, can you
copy it to the standard egg repository, please?
Chicken programmers, there are some nice examples of Q equations at
http://q-lang.sourceforge.net/examples/ . Q admins, can you copy dnf.q
to this directory as well? Both dnf.q and symbolic.q illustrate some
of the ease of use of Q's general-purpose term rewriting.
Here's an interactive example:
$ csi -R q-lang
Version 2.432 - windows-cygwin-x86 - [ dload ptables applyhook cmake ]
(c)2000-2006 Felix L. Winkelmann
; loading /usr/local/lib/chicken/1/q-lang.dll ...
; loading /usr/local/lib/chicken/1/numbers-base.dll ...
#;1> (q:code-reduce-to-code "1+2+3")
#;2> (q:reduce-to-exp '(q:call + (q:call + 1 2) 3)))
#;3> (q:reduce-to-code '(1 2 3 4 5))
#;4> (q:load-rules! "/usr/local/share/q/examples/dnf.q")
#;5> (q:code-reduce-to-code "(A or B) and (C or D)")
"A and C or B and C or A and D or B and D"
John Cowan address@hidden http://ccil.org/~cowan
Half the lies they tell about me are true.
-- Tallulah Bankhead, American actress
- [Chicken-users] ANNOUNCE: q-lang egg version 1.0 for Chicken Scheme available!,
John Cowan <=