[clug] Glue Language

Ben Coughlan ben.coughlan at gmail.com
Wed Jul 1 10:51:48 GMT 2009


I've just started looking at Clojure, a dialect of Lisp that compiles  
to/is interpreted by Java byte code/virtual machine.

The project site might have some helpful hints for you.  http://clojure.org/

Cogsy

On 01/07/2009, at 7:45 PM, Paul Matthews wrote:

> 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




More information about the linux mailing list