Actions

Difference between revisions of "R6RS"

From Gambit wiki

 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Using Andre van Tonder's [http://www.het.brown.edu/people/andre/macros syntax-case & library system] on Gambit
 
Using Andre van Tonder's [http://www.het.brown.edu/people/andre/macros syntax-case & library system] on Gambit
  
I've updated my R6RS package for Gambit.
 
 
1. Implemented err5rs records as an R5RS as well as R6RS library
 
2. Changed expander.scm and runtime.scm to use the new record system.
 
3. Updates for the compile script
 
  
 
The latest tarball is available at:
 
The latest tarball is available at:
Line 18: Line 13:
  
 
[http://smyles.com/projects/r6gambit/darcs http://smyles.com/projects/r6gambit/darcs]
 
[http://smyles.com/projects/r6gambit/darcs http://smyles.com/projects/r6gambit/darcs]
 +
 +
General Discussion mailing list:
 +
 +
[http://smyles.com/mailman/listinfo/r6gambit http://smyles.com/mailman/listinfo/r6gambit]
  
 
The err5rs records implementation can be independently used for your
 
The err5rs records implementation can be independently used for your
 
projects. Just copy the files:
 
projects. Just copy the files:
  
err5rs-records-inspection.scm
+
srfi-99.scm
err5rs-records-procedural.scm
 
  
  
Line 29: Line 27:
 
Questions:
 
Questions:
 
   * Can you add the declarations (declare (standard-binding)(extended-bindings)(block)) to the top of the file?  That would decrease the size of the .c file passed to gcc.
 
   * Can you add the declarations (declare (standard-binding)(extended-bindings)(block)) to the top of the file?  That would decrease the size of the .c file passed to gcc.
 +
  *''I've added what you asked in the latest version.''
 +
 +
I'm having trouble getting things installed. Could you please add a couple of paragraphs of user guide here? I followed the installation instructions (modifying my .gambcini); then I did gsc -i compile. At this point, everything got compiled and copied to my ~/.gambit/lib directory. I then went to that directory, and did gsc -i, followed by (load "r6rs"). No joy, it did not recognize the library or import special forms. Any suggestions? Thanks! (This is a very cool project, though, and I'm sure I'm just doing something dumb.) Oh yes: Gambit-C 4.4.1 on OS X Leopard.
 +
 +
''Sorry for the late reply. I just noticed your message now. To answer your question. There is a function called (r6rs) which will load the base library for you. Then you can use the (program ...) special form. Also, when you use the repl it is still the gambit repl. You can't use import or library. I sometimes lurk on #gambit (I'm atsmyles) irc channel so if you see me we can work through it.
  
 
[[Category: Code]] [[Category: Languages]]
 
[[Category: Code]] [[Category: Languages]]

Latest revision as of 21:41, 17 April 2010

Using Andre van Tonder's syntax-case & library system on Gambit


The latest tarball is available at:

r6gambit.tar.gz

The project homepage is now

http://smyles.com/projects/r6gambit

The darcs2 repository is available at

http://smyles.com/projects/r6gambit/darcs

General Discussion mailing list:

http://smyles.com/mailman/listinfo/r6gambit

The err5rs records implementation can be independently used for your projects. Just copy the files:

srfi-99.scm


Questions:

 * Can you add the declarations (declare (standard-binding)(extended-bindings)(block)) to the top of the file?  That would decrease the size of the .c file passed to gcc.
 *I've added what you asked in the latest version. 

I'm having trouble getting things installed. Could you please add a couple of paragraphs of user guide here? I followed the installation instructions (modifying my .gambcini); then I did gsc -i compile. At this point, everything got compiled and copied to my ~/.gambit/lib directory. I then went to that directory, and did gsc -i, followed by (load "r6rs"). No joy, it did not recognize the library or import special forms. Any suggestions? Thanks! (This is a very cool project, though, and I'm sure I'm just doing something dumb.) Oh yes: Gambit-C 4.4.1 on OS X Leopard.

Sorry for the late reply. I just noticed your message now. To answer your question. There is a function called (r6rs) which will load the base library for you. Then you can use the (program ...) special form. Also, when you use the repl it is still the gambit repl. You can't use import or library. I sometimes lurk on #gambit (I'm atsmyles) irc channel so if you see me we can work through it.