Make dependency on geesh optional.

This commit is contained in:
Jan Nieuwenhuizen 2018-11-03 08:07:04 +01:00
parent 992e12444d
commit ac30e252bd
1 changed files with 5 additions and 1 deletions

View File

@ -25,12 +25,16 @@
#:use-module (gash builtins)
#:use-module (gash gash)
#:use-module (gash io)
#:use-module (geesh parser)
#:export (
parse
parse-string
))
(catch #t
(lambda _ (use-modules (geesh parser)))
(lambda (key . args)
#t))
(define (parse port)
(let ((parse-tree (read-sh-all port)))
(when (> %debug-level 1)