diff options
-rw-r--r-- | cook/parse.scm | 4 | ||||
-rw-r--r-- | cook/parse.sld | 3 |
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 |