|
|
@ -14,7 +14,6 @@
|
|
|
|
get-position position-offset position-line position-col position?
|
|
|
|
get-position position-offset position-line position-col position?
|
|
|
|
define-tokens define-empty-tokens)
|
|
|
|
define-tokens define-empty-tokens)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define-syntaxes (lexer lexer-src-pos)
|
|
|
|
(define-syntaxes (lexer lexer-src-pos)
|
|
|
|
(let ((build-lexer
|
|
|
|
(let ((build-lexer
|
|
|
|
(lambda (wrap?)
|
|
|
|
(lambda (wrap?)
|
|
|
@ -37,22 +36,15 @@
|
|
|
|
(trans-table-stx (table-trans table))
|
|
|
|
(trans-table-stx (table-trans table))
|
|
|
|
(eof-table-stx (table-eof table))
|
|
|
|
(eof-table-stx (table-eof table))
|
|
|
|
(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?
|
|
|
|
(wrap? wrap?))
|
|
|
|
(syntax
|
|
|
|
(syntax
|
|
|
|
(lexer-body start-state-stx
|
|
|
|
(lexer-body start-state-stx
|
|
|
|
trans-table-stx
|
|
|
|
trans-table-stx
|
|
|
|
eof-table-stx
|
|
|
|
eof-table-stx
|
|
|
|
actions-stx
|
|
|
|
actions-stx
|
|
|
|
no-lookahead-stx
|
|
|
|
no-lookahead-stx
|
|
|
|
#t))
|
|
|
|
wrap?)))))))))))
|
|
|
|
(syntax
|
|
|
|
|
|
|
|
(lexer-body start-state-stx
|
|
|
|
|
|
|
|
trans-table-stx
|
|
|
|
|
|
|
|
eof-table-stx
|
|
|
|
|
|
|
|
actions-stx
|
|
|
|
|
|
|
|
no-lookahead-stx
|
|
|
|
|
|
|
|
#f))))))))))))
|
|
|
|
|
|
|
|
(values
|
|
|
|
(values
|
|
|
|
(build-lexer #f)
|
|
|
|
(build-lexer #f)
|
|
|
|
(build-lexer #t))))
|
|
|
|
(build-lexer #t))))
|
|
|
|