Directory | Tags | Index | LinkIt | Submit   | Help
    Thursday, 28 August 2014 - anonymous
Login/Register to vote and to have access to more features

You are here: Root > Programming Languages > Javascript

View the dependency graph for this library

parenscript (UnCommon Web module)
Created by stuart on: Fri, 03 Mar 2006 01:55:31 GMT, Last modification: Fri, 13 Jul 2007 16:50:48 GMT

Translates a subset of Common Lisp into JavaScript.

eMail
Web site
Mailing list
Version0.1.0 -
MaturityBeta
OS compatibility
ASDF installableNo
Official Download
Mirrored Download
Source code repositoryhttp://common-lisp.net/project/ucw/repos/parenscript/

Parenscript, originally, written by Manuel Odendahl, has now been incorporated into UnCommon Web, which seems to be the source for information and new releases.

It is a "compiler" that transforms Common Lisp into JavaScript. Or, seen another way, it is an S-expression syntax for JavaScript.

To quote the author's initial blog announcement, the following code:

(defun apply-effect () 
   (when (and document.all photoslider.filters) 
      (let ((trans photoslider.filters.reveal-trans)) 
          (setf (slot-value trans *Transition) 
                (floor (* (random) 23))) 
          (trans.stop) 
          (trans.apply))))

generates JavaScript like this:

function applyEffect() { 
   if (document.all && photoslider.filters) { 
      var trans = photoslider.filters.revealTrans; 
      trans.Transition = Math.floor(Math.random() * 23); 
      trans.stop(); 
      trans.apply(); 
   } 
}

From the feature list:

Required by these libraries

UCW+ | Wispy Lisp

Authors and Maintainers

Marco Baringer | Manuel Odendahl

Tags

Javascript | HTML | BSD license | Libraries

See Also

UnCommon Web

1 Notes and 0 comments

1 Notes

You must be logged to add a note

Changes to ParenScript.

Can the author of this entry update it with the latest ParenScript status? All the new details can be found at http://common-lisp.net/project/parenscript/

Submitted by vsedach 13/07/2007 16:50:48


0 Comments

You must be logged to add a comment