From 552247c3aea2d5849f3a76c217db6eac0f022069 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sun, 11 Aug 2024 00:32:08 +0200 Subject: Parse quantities as numbers --- cook/parse.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cook') 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))) -- cgit v1.2.3