From b394357ec0334890bf4a76a1fe0b124ec13e9b4e Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 26 Jun 2001 18:53:20 +0000 Subject: [PATCH] Must attempt to parse number before attempting identifier. Otherwise, the number's sign might be parsed as an identifier. --- v7/src/star-parser/test-parser.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v7/src/star-parser/test-parser.scm b/v7/src/star-parser/test-parser.scm index 6be4957dc..5f6837cf2 100644 --- a/v7/src/star-parser/test-parser.scm +++ b/v7/src/star-parser/test-parser.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: test-parser.scm,v 1.1 2001/06/26 18:03:26 cph Exp $ +;;; $Id: test-parser.scm,v 1.2 2001/06/26 18:53:20 cph Exp $ ;;; ;;; Copyright (c) 2001 Massachusetts Institute of Technology ;;; @@ -50,7 +50,7 @@ (noise (string ")")))))) (define parse-element - (*parser (alt parse-identifier parse-num-10 parse-list))) + (*parser (alt parse-num-10 parse-identifier parse-list))) (define parse-identifier (*parser (element-transform intern (match match-identifier)))) -- 2.25.1