|
|
@ -39,10 +39,24 @@
|
|
|
|
(no-lookahead-stx (table-no-lookahead table))
|
|
|
|
(no-lookahead-stx (table-no-lookahead table))
|
|
|
|
(actions-stx `(vector ,@(vector->list (table-actions table)))))
|
|
|
|
(actions-stx `(vector ,@(vector->list (table-actions table)))))
|
|
|
|
(if wrap?
|
|
|
|
(if wrap?
|
|
|
|
(syntax (lambda (lb)
|
|
|
|
(syntax
|
|
|
|
(lexer-body lb start-state-stx trans-table-stx eof-table-stx actions-stx no-lookahead-stx #t)))
|
|
|
|
(let-values (((a b c d e)
|
|
|
|
(syntax (lambda (lb)
|
|
|
|
(values start-state-stx
|
|
|
|
(lexer-body lb start-state-stx trans-table-stx eof-table-stx actions-stx no-lookahead-stx #f)))))))))))))
|
|
|
|
trans-table-stx
|
|
|
|
|
|
|
|
eof-table-stx
|
|
|
|
|
|
|
|
actions-stx
|
|
|
|
|
|
|
|
no-lookahead-stx)))
|
|
|
|
|
|
|
|
(lambda (lb)
|
|
|
|
|
|
|
|
(lexer-body lb a b c d e #t))))
|
|
|
|
|
|
|
|
(syntax
|
|
|
|
|
|
|
|
(let-values (((a b c d e)
|
|
|
|
|
|
|
|
(values start-state-stx
|
|
|
|
|
|
|
|
trans-table-stx
|
|
|
|
|
|
|
|
eof-table-stx
|
|
|
|
|
|
|
|
actions-stx
|
|
|
|
|
|
|
|
no-lookahead-stx)))
|
|
|
|
|
|
|
|
(lambda (lb)
|
|
|
|
|
|
|
|
(lexer-body lb a b c d e #f))))))))))))))
|
|
|
|
(values
|
|
|
|
(values
|
|
|
|
(build-lexer #f)
|
|
|
|
(build-lexer #f)
|
|
|
|
(build-lexer #t))))
|
|
|
|
(build-lexer #t))))
|
|
|
|