summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2025-05-03 23:14:20 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2025-05-03 23:14:20 +0200
commitb2a013f9d4beab2016f2828ddfd3fd79c4fd653f (patch)
treed66f6cd2d468b6a257da769cd10689d404ecf09b
parent458017a291d200b736efe5d4b8dcb6789eb08b3a (diff)
parse: clean exports
-rw-r--r--cook/parse-internals.sld5
-rw-r--r--cook/parse.sld11
2 files changed, 13 insertions, 3 deletions
diff --git a/cook/parse-internals.sld b/cook/parse-internals.sld
index bed300c..1aba787 100644
--- a/cook/parse-internals.sld
+++ b/cook/parse-internals.sld
@@ -10,7 +10,8 @@
(chibi regexp)
(chibi string)
(cook unicode))
- (export <amount>
+ (export ;; Data structures
+ <amount>
amount?
amount-quantity
amount-unit
@@ -50,7 +51,7 @@
<section>
section?
section-name
- ;; Functions
+ ;; Parsing functions
parse-cook
nl
whitespace
diff --git a/cook/parse.sld b/cook/parse.sld
index 20de41a..b92e586 100644
--- a/cook/parse.sld
+++ b/cook/parse.sld
@@ -10,26 +10,35 @@
(chibi regexp)
(chibi string)
(cook unicode))
- (export amount?
+ (export <amount>
+ amount?
amount-quantity
amount-unit
+ <ingredient>
ingredient?
ingredient-name
ingredient-amount
+ <timer>
timer?
timer-name
timer-amount
+ <cookware>
cookware?
cookware-name
cookware-amount
+ <comment>
comment?
comment-text
+ <note>
note?
note-text
+ <section>
section?
section-name
+ <step>
step?
step-elements
+ <recipe>
recipe?
recipe-metadata
recipe-body