aboutsummaryrefslogtreecommitdiff
path: root/core/text.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-09-06 12:46:39 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-09-06 12:48:16 -0700
commita35d010dfe2b2769cf13ae508952c279aecb3aac (patch)
tree69ce1fcd0123832599d2766d361a8a8b43fcfb4b /core/text.nom
parente1bc075bb5319b3903f66e141810dcb9ef53042e (diff)
Removed the mandatory "_" prefix for Nomsu variables, renamed "list" and
"dict" to "List" and "Dict", or in Nomsu's environment, "_List" and "_Dict", removed uuid.lua and replaced it with core/id.nom for handling IDs.
Diffstat (limited to 'core/text.nom')
-rw-r--r--core/text.nom6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/text.nom b/core/text.nom
index 0232b7d..d9d85b5 100644
--- a/core/text.nom
+++ b/core/text.nom
@@ -47,7 +47,7 @@ compile [byte %i of %text] to (..)
compile [bytes %start to %stop of %text] to (..)
Lua value ".."
- list{(\(%text as lua expr)):byte(\(%start as lua expr), \(%stop as lua expr))}
+ _List{(\(%text as lua expr)):byte(\(%start as lua expr), \(%stop as lua expr))}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -82,7 +82,7 @@ test:
..== ["one", "two"]
action [lines in %text, lines of %text] (..)
lua> ".."
- local result = list{}
+ local result = _List{}
for line in (\%text):gmatch('[^\\n]+') do
result[#result+1] = line
end
@@ -99,7 +99,7 @@ compile [for %match in %text matching %patt %body] to (..)
compile [%expr for %match in %text matching %patt] to (..)
Lua value ".."
(function()
- local ret = list{}
+ local ret = _List{}
for \(%match as lua expr) in (\(%text as lua expr)):gmatch(\(..)
%patt as lua expr
..) do