messages can refer to the line. Change representation of buffer
pointers to include the line number. Add operation to generate a
string that shows the line number and character number of either a
given pointer or the current position.
* Eliminate DECREMENT-PARSER-BUFFER-POINTER, which was unused and
makes implementing the line number more difficult.
* Add -NO-ADVANCE versions of procedures that match single characters.
* Change terminology: the index of the current character in the buffer
is called a "position". The word "pointer" is reserved to refer to
pointer objects that are handed to the users, which themselves refer
to positions.
;;; -*-Scheme-*-
;;;
-;;; $Id: buffer.scm,v 1.4 2001/06/29 05:19:24 cph Exp $
+;;; $Id: buffer.scm,v 1.5 2001/06/29 05:21:43 cph Exp $
;;;
;;; Copyright (c) 2001 Massachusetts Institute of Technology
;;;
;;; length.
(define (substring->parser-buffer string start end)
- (make-parser-buffer string start end 0 start #f #t 0 0))
+ (make-parser-buffer string start end 0 start #f #t 0))
(define (source->parser-buffer source)
- (make-parser-buffer (make-string min-length) 0 0 0 0 source #f 0 0))
+ (make-parser-buffer (make-string min-length) 0 0 0 0 source #f 0))
(define-integrable min-length 256)
;;; -*-Scheme-*-
;;;
-;;; $Id: ed-ffi.scm,v 1.1 2001/06/26 18:51:22 cph Exp $
+;;; $Id: ed-ffi.scm,v 1.2 2001/06/29 05:23:24 cph Exp $
;;;
;;; Copyright (c) 2001 Massachusetts Institute of Technology
;;;
;;;; Parser language: Edwin buffer packaging info
(standard-scheme-find-file-initialization
- '#(("buffer" (runtime *parser)
+ '#(("buffer" (runtime *parser buffer)
system-global-syntax-table)
("matcher" (runtime *parser)
system-global-syntax-table)