LispyScript
A javascript With Lispy Syntax And Macros!
Overview
An inherent problem with Javascript is that it has no macro support, like other Lisp like languages. That's because macros manipulate the syntax tree while compiling. And this is next to impossible in a language like Javascript.
In LispyScript we write Javascript in a tree structure. If you know Javascript and a Lisp like language, then using LispyScript will be a breeze. Even if you don't know a Lispy Language, all you need to learn is to write code in a tree structure.
Hello World in LispyScript
(console.log "Hello LispyScript!")
A LispyScript program is made up of expressions in parenthesis. The first element in the expression is a function or a LispyScript keyword. The rest of the elements (separated by space characters) are the arguments to the function. As you can see above we can directly access javascript functions from LispyScript.
'Programming' 카테고리의 다른 글
(Racket) define-syntax-rule examples (0) | 2012.09.27 |
---|---|
7 lines of code, 3 minutes: Implement a programming language from scratch (0) | 2012.09.25 |
Linking newLISP source and executable (0) | 2012.09.24 |
newlisp A better Lisp-Scheme Fusion... Lambda the Ultimate (0) | 2012.09.23 |
Automatic Memory Management in newLISP (0) | 2012.09.22 |