From adf7673ae8f08d12d4f307e29c2cf1f1451abe06 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 27 Jun 2001 01:53:53 +0000 Subject: [PATCH] Fix code-generation bug in MATCH element. --- v7/src/star-parser/parser.scm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/v7/src/star-parser/parser.scm b/v7/src/star-parser/parser.scm index 7d832dad1..29fda85ab 100644 --- a/v7/src/star-parser/parser.scm +++ b/v7/src/star-parser/parser.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: parser.scm,v 1.7 2001/06/26 23:46:41 cph Exp $ +;;; $Id: parser.scm,v 1.8 2001/06/27 01:53:53 cph Exp $ ;;; ;;; Copyright (c) 2001 Massachusetts Institute of Technology ;;; @@ -151,10 +151,12 @@ (lambda (start-pointers) (compile-matcher-expression matcher start-pointers (lambda (pointers) - (if-succeed pointers - `(VECTOR (GET-PARSER-BUFFER-TAIL - ,*buffer-name* - ,(current-pointer start-pointers))))) + (with-variable-binding + `(VECTOR (GET-PARSER-BUFFER-TAIL + ,*buffer-name* + ,(current-pointer start-pointers))) + (lambda (v) + (if-succeed pointers v)))) if-fail)))) (define-parser (noise matcher) -- 2.25.1