diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-08-11 00:32:08 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-08-11 00:32:08 +0200 |
commit | 552247c3aea2d5849f3a76c217db6eac0f022069 (patch) | |
tree | 8a8305f6915ebdaf8bbeeb0404e5ce7f05b4ecdb /cook | |
parent | b6e934250c4b7b74201984f74392a2ce510e055d (diff) |
Parse quantities as numbers
Diffstat (limited to 'cook')
-rw-r--r-- | cook/parse.scm | 2 |
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))) |