summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-08-11 00:32:08 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-08-11 00:32:08 +0200
commit552247c3aea2d5849f3a76c217db6eac0f022069 (patch)
tree8a8305f6915ebdaf8bbeeb0404e5ce7f05b4ecdb
parentb6e934250c4b7b74201984f74392a2ce510e055d (diff)
Parse quantities as numbers
-rw-r--r--cook/parse.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cook/parse.scm b/cook/parse.scm
index 2cc604b..ae645f6 100644
--- a/cook/parse.scm
+++ b/cook/parse.scm
@@ -100,7 +100,7 @@ https://github.com/cooklang/spec/blob/main/EBNF.md
(unit ((=> u (+ ,unit-chars))
(list->string u)))
(quantity ((=> q (+ ,quantity-chars))
- (list->string q)))
+ (string->number (list->string q))))
(meta-key ((=> k (+ ,metadata-chars))
(list->string k)))