aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-09-15 15:39:38 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-09-15 15:39:57 -0700
commitf8cfdd0f2276afe2f924295c192256601db595db (patch)
treedbc479765e51b3172f03103eea7dd1f694914365 /core
parentb721356d8bff2631b90c5c091568327b2ca187fc (diff)
Better parsing of strings and handling of non-printable characters and
tabs.
Diffstat (limited to 'core')
-rw-r--r--core/collections.nom3
-rw-r--r--core/math.nom4
2 files changed, 3 insertions, 4 deletions
diff --git a/core/collections.nom b/core/collections.nom
index 5daaa09..8dbc79d 100644
--- a/core/collections.nom
+++ b/core/collections.nom
@@ -84,8 +84,7 @@ parse [..]
# Dict comprehensions
test:
assume (((% * %) = % for % in [1, 2, 3]) == {1:1, 4:2, 9:3})
-parse [%key = %value for %item in %iterable, %key %value for %item in %iterable] as
-..(..)
+parse [%key = %value for %item in %iterable, %key %value for %item in %iterable] as (..)
result of:
%comprehension = {}
for %item in %iterable:
diff --git a/core/math.nom b/core/math.nom
index 11282a4..d6ddbce 100644
--- a/core/math.nom
+++ b/core/math.nom
@@ -99,8 +99,8 @@ action [avg of %items, average of %items] (=lua "(utils.sum(\%items)/#\%items)")
compile [min of %items, smallest of %items, lowest of %items] to (..)
Lua value "utils.min(\(%items as lua expr))"
-compile [max of %items, biggest of %items, largest of %items, highest of %items] to
-..(Lua value "utils.max(\(%items as lua expr))")
+compile [max of %items, biggest of %items, largest of %items, highest of %items] to (..)
+ Lua value "utils.max(\(%items as lua expr))"
test:
assume ((min of [3, -4, 1, 2] by % = (% * %)) == 1)