summaryrefslogtreecommitdiff
path: root/cook
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-08-11 13:57:36 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-08-11 13:57:36 +0200
commit51e18e45c4ac48e8b77fbd7403daa7ba7109675a (patch)
treef851729030034b9272b3c103d57456583145686d /cook
parent3525165eeefe739f9978c3b41dee85fd4b826ef5 (diff)
Remove uneeded import
Diffstat (limited to 'cook')
-rw-r--r--cook/parse.scm4
-rw-r--r--cook/parse.sld3
2 files changed, 4 insertions, 3 deletions
diff --git a/cook/parse.scm b/cook/parse.scm
index a4ab940..f53bca4 100644
--- a/cook/parse.scm
+++ b/cook/parse.scm
@@ -150,7 +150,9 @@ https://github.com/cooklang/spec/blob/main/EBNF.md
(recipe ((* (or (: (=> m (+ ,metadata)) ,nl)
(=> c (+ ,comment))
(: (=> s (+ ,step)) (or eos (* ,empty-line)))))
- (list 'recipe (metadata-line-list->hash-table m) s))))
+ (list 'recipe
+ (metadata-line-list->hash-table (or m '()))
+ s))))
(define (parse-cook str)
(parse-fully recipe str))
diff --git a/cook/parse.sld b/cook/parse.sld
index 6a92d1d..e9805c3 100644
--- a/cook/parse.sld
+++ b/cook/parse.sld
@@ -6,8 +6,7 @@
(chibi char-set ascii)
(chibi char-set)
(chibi parse)
- (chibi regexp)
- (chibi parse common))
+ (chibi regexp))
(export amount?
amount-quantity
amount-unit