Jorge Tavares

"It is sometimes an appropriate response to reality to go insane." — Philip K. Dick

Original implementation of Javascript in CL

with 2 comments

Thanks to a tweet from Tiago Charters de Azevedo, I learned today that Mozilla’s CVS tree still contains the original implementation of Javascript written in Common Lisp. I always found interesting to see examples of Lisp being used in places most people wouldn’t dream of (even if later it’s replaced by another language implementation).

The README states:

“js/semantics contains experimental code used to generate LR(1) and LALR(1) grammars for JavaScript as well as compile and check formal semantics for JavaScript.  The semantics can be executed directly or printed into either HTML or Microsoft Word RTF formats. This code is written in standard Common Lisp.  It’s been used under Macintosh Common Lisp 4.0, and Allegro Common Lisp 5.0.1 for Windows, but should also work under other Common Lisp implementations.”

Now I need to take a look at this code more carefully, just for the fun of it!

About these ads

Written by Jorge Tavares

May 19, 2010 at 11:39

Posted in Programming

Tagged with , ,

2 Responses

Subscribe to comments with RSS.

  1. […] Czytaj więcej: Original implementation of Javascript in CL « Jorge Tavares weblog […]

  2. […] This post was mentioned on Twitter by Thomas Buck, Jorge Tavares. Jorge Tavares said: Thanks to @t_ca !! http://jorgetavares.com/2010/05/19/original-implementation-of-javascript-in-cl/ #lisp […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: