[q-lang-users] ANNOUNCE: q-lang egg version 1.0 for Chicken Scheme available!
Brought to you by:
agraef
From: John C. <co...@cc...> - 2006-09-29 20:38:34
|
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 Chicken 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") "6" #;2> (q:reduce-to-exp '(q:call + (q:call + 1 2) 3))) 6 #;3> (q:reduce-to-code '(1 2 3 4 5)) "[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 co...@cc... http://ccil.org/~cowan Half the lies they tell about me are true. -- Tallulah Bankhead, American actress |