*** empty log message ***

original commit: 6ae268657dacaa661e55f6a6c6c43d3ed1357102
tokens
Scott Owens 20 years ago
parent 666027c770
commit 028f098f15

@ -4,6 +4,7 @@
;; create and use the buffer that the lexer reads from. See doc.txt. ;; create and use the buffer that the lexer reads from. See doc.txt.
(require-for-syntax (lib "list.ss") (require-for-syntax (lib "list.ss")
(lib "stx.ss" "syntax")
(lib "define.ss" "syntax") (lib "define.ss" "syntax")
(lib "boundmap.ss" "syntax") (lib "boundmap.ss" "syntax")
"private-lex/util.ss" "private-lex/util.ss"
@ -81,7 +82,7 @@
(((special) act) (((special) act)
(not (ormap (not (ormap
(lambda (x) (lambda (x)
(module-identifier=? (syntax special) x)) (module-or-top-identifier=? (syntax special) x))
ids))) ids)))
(_ #t))) (_ #t)))
spec/re-act-lst))) spec/re-act-lst)))

@ -1,6 +1,6 @@
(module actions mzscheme (module actions mzscheme
(provide (all-defined)) (provide (all-defined))
;(require (lib "stx.ss" "syntax")) (require (lib "stx.ss" "syntax"))
;; get-special-action: (syntax-object list) syntax-object syntax-object -> syntax-object ;; get-special-action: (syntax-object list) syntax-object syntax-object -> syntax-object
;; Returns the first action from a rule of the form ((which-special) action) ;; Returns the first action from a rule of the form ((which-special) action)
@ -10,7 +10,7 @@
(else (else
(syntax-case (car rules) () (syntax-case (car rules) ()
(((special) act) (((special) act)
(module-identifier=? (syntax special) which-special) (module-or-top-identifier=? (syntax special) which-special)
(syntax act)) (syntax act))
(_ (get-special-action (cdr rules) which-special none)))))) (_ (get-special-action (cdr rules) which-special none))))))

Loading…
Cancel
Save