Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Languages Misc > Re: Algol-like ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 1102 of 1193
Post > Topic >>

Re: Algol-like syntax for Lisp

by Pascal Costanza <pc@[EMAIL PROTECTED] > Jan 26, 2008 at 11:19 AM

Blake McBride wrote:

> I'd like to create an Algol-like syntax for Common Lisp.  The syntax
> and semantics would always remain compatible with Lisp.  The program
> would be written in Common Lisp.  It would read in the new syntax and
> output Common Lisp (the first converter).
> 
> I'd also like to have the ability to read in Lisp and output the new
> syntax so that new syntax programmers would feel comfortable with code
> written in Lisp syntax (the second converter).

Macros will probably be hard, but you may want to take a look at 
Jonathan Bachrach's work on d-expressions, an attempt to integrate a 
'full' macro system into Dylan.

I think that additional parsing and pretty-printing steps are not really 
worthwhile because they don't really go the whole way. Instead, I think 
it would be neater if the internal AST is an object graph which can be 
presented and modified using an MVC approach (or something similar). 
This could potentially give us a system in which you could mix and match 
different (domain-specific) syntaxes, or maybe even fully graphical 
program elements.

The research on intentional programming goes in that direction. See also 
Andrew Eisenberg's work on edit-time metaobject protocols, or Robert 
Wensman's work at http://www.ida.liu.se/~robwe/
which is probably more 
Lispy. Scheme's syntax objects may be a good starting point.

I'd be surprised if there weren't even more related approaches in the 
past, with some good ideas...


Pascal

-- 
1st European Lisp Symposium (ELS'08)
http://prog.vub.ac.be/~pcostanza/els08/

My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/
 




 6 Posts in Topic:
Algol-like syntax for Lisp
Blake McBride <blake@[  2008-01-26 00:07:52 
Re: Algol-like syntax for Lisp
Pascal Costanza <pc@[E  2008-01-26 11:19:10 
Re: Algol-like syntax for Lisp
Andrew Reilly <andrew-  2008-01-26 12:27:19 
Re: Algol-like syntax for Lisp
Ray Blaak <rAYblaaK@[E  2008-01-26 22:09:45 
Re: Algol-like syntax for Lisp
Blake McBride <blake@[  2008-01-27 01:58:03 
Re: Algol-like syntax for Lisp
Jon Harrop <jon@[EMAIL  2008-06-02 10:24:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 22:55:42 CDT 2008.