[clug] Glue Language
Jason Stokes
glasper9 at yahoo.com.au
Wed Jul 1 09:57:31 GMT 2009
What are you using this language for? Is there a reason
why you prefer scheme with non-standard syntax to python
or lua or another commonly embedded language?
----- Original Message ----
From: Paul Matthews <plm at netspace.net.au>
To: linux at lists.samba.org
Sent: Wednesday, 1 July, 2009 7:45:43 PM
Subject: [clug] Glue Language
A quick experiment at indicates that my target audience find the
following has "too many brackets" :
(define (fact n)
(if (= n 0)
1
(* n (fact (- n 1)))))
(fact 12)
However the following is "Oh! I see everything is a function":
sub fact( n ) {
if( ==(n 0) ) {
1
}
else {
*( n fact( -(n 1) ) )
}
}
fact(12)
Obviously the only real difference between the two is a small amount of
syntax. (You will notice that the second one actually has more
brackets...) This indicates to me I could build something no larger or
complex than a small scheme interpreter, such as scheme48 or tinyscheme,
with a different tokenizer and lexer. Unfortunately the creators of
these small scheme interpreters where not so good at placing comments in
their code. But, hey, who is ... ;-)
Does anyone have good documentation concerning have to build your own
scheme interpreter?
--
linux mailing list
linux at lists.samba.org
https://lists.samba.org/mailman/listinfo/linux
____________________________________________________________________________________
Access Yahoo!7 Mail on your mobile. Anytime. Anywhere.
Show me how: http://au.mobile.yahoo.com/mail
More information about the linux
mailing list