|
|
@ -54,8 +54,6 @@
|
|
|
|
(define-for-syntax (make-lexer-trans src-pos?)
|
|
|
|
(define-for-syntax (make-lexer-trans src-pos?)
|
|
|
|
(lambda (stx)
|
|
|
|
(lambda (stx)
|
|
|
|
(syntax-case stx ()
|
|
|
|
(syntax-case stx ()
|
|
|
|
((_)
|
|
|
|
|
|
|
|
(raise-syntax-error #f "accepts the empty string" stx))
|
|
|
|
|
|
|
|
((_ re-act ...)
|
|
|
|
((_ re-act ...)
|
|
|
|
(begin
|
|
|
|
(begin
|
|
|
|
(for-each
|
|
|
|
(for-each
|
|
|
@ -98,7 +96,7 @@
|
|
|
|
name-lst)))
|
|
|
|
name-lst)))
|
|
|
|
(let-values (((trans start action-names no-look disappeared-uses)
|
|
|
|
(let-values (((trans start action-names no-look disappeared-uses)
|
|
|
|
(build-lexer re-actname-lst)))
|
|
|
|
(build-lexer re-actname-lst)))
|
|
|
|
#;(when (vector-ref action-names start)
|
|
|
|
(when (vector-ref action-names start)
|
|
|
|
(raise-syntax-error #f "accepts the empty string" stx))
|
|
|
|
(raise-syntax-error #f "accepts the empty string" stx))
|
|
|
|
(with-syntax ((start-state-stx start)
|
|
|
|
(with-syntax ((start-state-stx start)
|
|
|
|
(trans-table-stx trans)
|
|
|
|
(trans-table-stx trans)
|
|
|
|