make better procedure name

pull/2/head
Matthew Butterick 8 years ago
parent 406234934f
commit 039df34f88

@ -144,13 +144,15 @@
(end EOF) (end EOF)
(error THE-ERROR-HANDLER) (error THE-ERROR-HANDLER)
generated-grammar)]) generated-grammar)])
(procedure-rename
(case-lambda [(tokenizer) (case-lambda [(tokenizer)
(define next-token (define next-token
(make-permissive-tokenizer tokenizer all-tokens-hash/mutable)) (make-permissive-tokenizer tokenizer all-tokens-hash/mutable))
(THE-GRAMMAR next-token)] (THE-GRAMMAR next-token)]
[(source tokenizer) [(source tokenizer)
(parameterize ([current-source source]) (parameterize ([current-source source])
(parse tokenizer))])))])) (parse tokenizer))])
(string->symbol (format "~a-rule-parser" 'start-rule)))))]))
(define parse (make-rule-parser start-id)) (define parse (make-rule-parser start-id))
(provide parse-to-datum parse-tree) (provide parse-to-datum parse-tree)

Loading…
Cancel
Save