Commit Graph

31 Commits

Author SHA1 Message Date
Abdulaziz Ghuloum 177f6b84a7 Fixed a reader bug that causes '#!eof not to read properly.
Used to be:
> '#!eof
Unhandled exception
 Condition components:
  1. &lexical
  2. &message: "invalid eof after quote read macro"
  3. &lexical-position:
      file-name: *stdin*
      character: 7

Now:
> '#!eof
#!eof
2008-04-14 22:18:56 -04:00
Abdulaziz Ghuloum 97507bce08 Fixes bug in reader now recognizing the following comment:
> #|| hello ||# '12
2008-03-15 21:12:43 -04:00
Abdulaziz Ghuloum f6e5e4d5b4 Added -m32 to CFLAGS/LDFLAGS, updated copyright dates and version no. 2008-01-29 00:34:34 -05:00
Abdulaziz Ghuloum 10077a6468 minor change to the value returned by input-port-byte-position
(it's up by 1 now).
2007-12-19 19:33:05 -05:00
Abdulaziz Ghuloum 917754e28e syntax-errors now give source information in their error message. 2007-12-19 19:05:23 -05:00
Abdulaziz Ghuloum 22ff670e81 the reader is now capable of returning annotated expressions
containing full file-source information about each expression.
2007-12-19 00:40:25 -05:00
Abdulaziz Ghuloum 0aa846ba78 reduced size of parser, and added two helpers for reading and
recording position.
2007-12-18 23:07:57 -05:00
Abdulaziz Ghuloum 2c98be442a more simplifications to reader. 2007-12-18 22:28:27 -05:00
Abdulaziz Ghuloum 4393d2aab9 simplified reader by removing hash-semi handling. 2007-12-18 22:06:58 -05:00
Abdulaziz Ghuloum d86bfb288c Lexical errors now give filename and character position in their
error messages.
2007-12-18 19:52:15 -05:00
Abdulaziz Ghuloum 8c0563b2d3 fixes bug 173369: errors are supposed to be &assertion 2007-12-15 08:22:49 -05:00
Abdulaziz Ghuloum c181838f48 changed "parse-import-spec*" in psyntax.expander to return two
vectors (names and labels) instead of an a-list subst.
2007-12-13 05:57:15 -05:00
Abdulaziz Ghuloum 0b693a7103 The unread-char primitive is deleted, all code that referenced
unread-char was rewritten as peek-char and read-char.
2007-12-05 05:01:56 -05:00
Abdulaziz Ghuloum 5073b26fe9 Fixes bug 173201: More reader bugs from read0 2007-12-02 20:06:00 -05:00
Abdulaziz Ghuloum 9d9735ce2a Cases in bug 173201 are closed. Still failing read0 though. 2007-12-02 06:58:33 -05:00
Abdulaziz Ghuloum 2d06b792e1 Some work on fixing bug 173201. 2007-12-02 01:30:38 -05:00
Abdulaziz Ghuloum 4c16c8b340 * Fixed some reader bugs wrt bug 173201. 2007-12-01 04:31:48 -05:00
Abdulaziz Ghuloum 75e09500c4 Fixes bug 173200: semi-colon is not a delimiter 2007-12-01 03:18:28 -05:00
Abdulaziz Ghuloum e461f4374f Made #!eof invalid in #!r6rs mode. 2007-11-25 16:23:39 -05:00
Abdulaziz Ghuloum 63f656896f Added get-datum. 2007-11-22 14:43:39 -05:00
Abdulaziz Ghuloum 8dffa9cf23 Fixed bug 163714: read/write invariance problem with symbols 2007-11-19 02:00:26 -05:00
Abdulaziz Ghuloum 9ff795e02f |symbol| syntax now signals an error in #!r6rs mode. 2007-11-19 01:47:46 -05:00
Abdulaziz Ghuloum 7282bd1c48 Fixes bug 163589: ikarus does not support the #!r6rs comment.
* Added #!r6rs and #!ikarus tokens to the reader
* #!r6rs disables the #:foo and #{foo bar} gensym syntaxes and it
  also disables the #n= and #n# graphs marks syntax.
* #!ikarus enables both options.
* every opened port starts in the ikarus-mode by default.
2007-11-18 19:53:32 -05:00
Abdulaziz Ghuloum 3feb49e10c * [Partially] Fixes bug 162334: exact->inexact is broken for 5e-324 2007-11-13 03:00:57 -05:00
Abdulaziz Ghuloum 99d15d2705 Fixes bug 162247: +NaN.0 and -INF.0 are not read properly 2007-11-12 14:12:01 -05:00
Abdulaziz Ghuloum dd5896761f * minor cleanup in reader (and minor bug fixes). 2007-11-07 11:41:28 -05:00
Abdulaziz Ghuloum da16a5ef7a * reader now recognizes all standard character names:
#\nul #\alaram #\backspace ... #\delete
2007-11-07 11:24:18 -05:00
Abdulaziz Ghuloum 8b6f52f72e * Fixed a bug in #{gensym} read syntax. 2007-10-30 17:45:08 -04:00
Abdulaziz Ghuloum 6f576dc224 * Added license stubs to all *.ss and *.[ch] files. 2007-10-25 16:27:34 -04:00
Abdulaziz Ghuloum b640d98cbc * removed formatted errors from all source codes. 2007-10-25 14:32:26 -04:00
Abdulaziz Ghuloum fdb664b61c renamed:
src/scheme => scheme
2007-10-17 20:07:10 -04:00