*** empty log message ***

original commit: bc196411e5e80f1c85d91f7a13cd484d5d771e84
tokens
Scott Owens 21 years ago
parent 7595507209
commit d3ed80f6c8

@ -152,8 +152,7 @@
(syntax-case prec-decls () (syntax-case prec-decls ()
(((type term ...) ...) (((type term ...) ...)
(let ((p-terms (let ((p-terms
(apply append (syntax-object->datum (syntax-object->datum (syntax (term ... ...)))))
(syntax ((term ...) ...))))))
(cond (cond
((duplicate-list? p-terms) => ((duplicate-list? p-terms) =>
(lambda (d) (lambda (d)
@ -186,7 +185,7 @@
"Associativity must be left, right or nonassoc" "Associativity must be left, right or nonassoc"
type))) type)))
(syntax->list (syntax (type ...)))) (syntax->list (syntax (type ...))))
(cdr (syntax-object->datum prec-decls)))))) (syntax-object->datum prec-decls)))))
(#f null) (#f null)
(_ (_
(raise-syntax-error (raise-syntax-error

@ -62,12 +62,12 @@
(if assocs (if assocs
(map get-term-binder (map get-term-binder
(syntax-case assocs () (syntax-case assocs ()
((_ (__ term ...) ...) (((__ term ...) ...)
(syntax->list (syntax (term ... ...)))))) (syntax->list (syntax (term ... ...))))))
null))) null)))
#`(when #f #`(when #f
(let ((bind void) ...) (let ((bind void) ...)
(void ))))));bound ... ... term-group ... start ... end ... prec ...)))))) (void bound ... ... term-group ... start ... end ... prec ...))))))
(define (build-parser filename src-pos suppress input-terms start end assocs prods) (define (build-parser filename src-pos suppress input-terms start end assocs prods)
(let* ((grammar (parse-input input-terms start end assocs prods src-pos)) (let* ((grammar (parse-input input-terms start end assocs prods src-pos))

Loading…
Cancel
Save