From 4f30e02acb666c52e0254eb9a3bf89a9cabb5e6d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 29 Aug 2018 19:38:14 -0700 Subject: Handling more compatibility stuff, including Lua 5.4, and a backup for if openssl module is not found, and moving containers (List/Dict) into their own file, as well as bit operators (and support for __bxor, etc. metamethods in Lua 5.2/LuaJIT) --- core/text.nom | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/text.nom') diff --git a/core/text.nom b/core/text.nom index 25d4066..3cc979c 100644 --- a/core/text.nom +++ b/core/text.nom @@ -49,6 +49,10 @@ compile [bytes %start to %stop of %text] to (..) Lua value ".." list{(\(%text as lua expr)):byte(\(%start as lua expr), \(%stop as lua expr))} +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +action [bytes of %text] (bytes 1 to (=lua "#\%text") of %text) + test: assume (("asdf" capitalized) == "Asdf") compile [capitalized %text, %text capitalized] to (..) -- cgit v1.2.3