| 1 |
Guile-Reader, an extensible, fast, reader framework for GNU Guile |
| 2 |
================================================================= |
| 3 |
|
| 4 |
Introduction |
| 5 |
------------ |
| 6 |
|
| 7 |
The idea: provide an extensible, yet fast, reader for Guile, GNU's |
| 8 |
Scheme interpreter library. Guile currently provides limited |
| 9 |
extensibility of its reader, by means of `read-hash-extend', for |
| 10 |
instance, or `read-enable' and the likes. Moreover, while this may not |
| 11 |
always be desirable, those extension facilities have a global effect, |
| 12 |
changing the behavior of the sole reader implementation available at |
| 13 |
run-time. This makes it impossible to have, for instance, one module |
| 14 |
consider names starting with `:' as symbols, while another considers |
| 15 |
them as keywords. |
| 16 |
|
| 17 |
Extensions such as the read syntax for SRFI-4 numeric vectors had to be |
| 18 |
added to Guile's built-in C reader. Syntactic extensions that did not |
| 19 |
appeal the majority of users, like Emacs-Lisp vectors, are #ifdef'd |
| 20 |
within the reader code and are not available by default. Moreover, some |
| 21 |
extensions are incompatible with each other, such as the DSSSL keyword |
| 22 |
syntax and the SCSH block comments. In short the current reader syntax |
| 23 |
is hardly extensible. |
| 24 |
|
| 25 |
The point here is to be able to create a completely customizable Scheme |
| 26 |
reader using basic building-blocks such as an R5RS string reader, an |
| 27 |
S-exp reader, etc., or even user-defined readers. |
| 28 |
|
| 29 |
In order to achieve performance equivalent (or better?) to Guile's C |
| 30 |
hand-coded reader, Guile-Reader relies on GNU lightning to compile |
| 31 |
readers to native code. For compatibility, a lightning-free, slower |
| 32 |
implementation is available for platforms not supported by lightning. |
| 33 |
|
| 34 |
|
| 35 |
Availability |
| 36 |
------------ |
| 37 |
|
| 38 |
Guile-Reader is available under the GNU General Public License, version |
| 39 |
2 or later, at your option (see file `COPYING'). It is hosted by |
| 40 |
Savannah at: |
| 41 |
|
| 42 |
http://savannah.nongnu.org/projects/guile-reader/ |
| 43 |
|
| 44 |
If you want do discuss about it, do not hesitate to subscribe to the |
| 45 |
`guile-reader-devel' mailing list from there. |
| 46 |
|
| 47 |
Source code if managed using Git (http://git.or.cz/). A copy of the |
| 48 |
repository can be obtained using: |
| 49 |
|
| 50 |
git clone git://git.sv.gnu.org/guile-reader.git |
| 51 |
|
| 52 |
Alternatively, the repository can be browsed online at: |
| 53 |
|
| 54 |
http://git.sv.gnu.org/gitweb/?p=guile-reader.git;a=summary |
| 55 |
|
| 56 |
Happy hacking! |
| 57 |
|
| 58 |
|
| 59 |
Installation |
| 60 |
------------ |
| 61 |
|
| 62 |
Guile-Reader is written for Guile 1.8.x, 2.0.x, 2.2.x and 3.0.x. For |
| 63 |
optimal performance, you may want to get GNU lightning 1.2c or later, |
| 64 |
but not lightning 2.x, which is not supported yet. |
| 65 |
|
| 66 |
|
| 67 |
Thanks in advance for your feedback! :-) |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
Copyright 2005, 2006, 2007, 2008, 2015 Ludovic Courtès <[email protected]> |
| 74 |
|
| 75 |
Copying and distribution of this file, with or without modification, |
| 76 |
are permitted in any medium without royalty provided the copyright |
| 77 |
notice and this notice are preserved. |
| 78 |
|
| 79 |
;;; Local Variables: |
| 80 |
;;; mode: text |
| 81 |
;;; coding: utf-8 |
| 82 |
;;; End: |