From a35d010dfe2b2769cf13ae508952c279aecb3aac Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 6 Sep 2018 12:46:39 -0700 Subject: 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. --- core/text.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/text.nom') 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 -- cgit v1.2.3