What would have happen if we try to create a lisp with tcl
syntax? something like this: { body ... } => (let () body ...)
let var val => (let ((var val)) ...)
set var val => (set! var val)
We will have infix expression using expr expr "x+y"
Condition expression will be something like: if "x==y" {
...
} else {
...
}
this translate to: (if "x==y" (let () ...) else (let () ...))
Function call will be similar to tcl but without the square brackets fn arg1 arg2 ... => (fn arg1 arg2 ...)
fn (fn2 arg1 ...) => (fn (fn2 arg1 ...))
|