diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-08-29 19:38:14 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-08-29 19:39:15 -0700 |
| commit | 4f30e02acb666c52e0254eb9a3bf89a9cabb5e6d (patch) | |
| tree | bacc6a2baf70c18d3d44db06dc2235ec42edd49f /core/text.nom | |
| parent | aae5ce31feb482a86d8ef96fb1f104194f26828c (diff) | |
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)
Diffstat (limited to 'core/text.nom')
| -rw-r--r-- | core/text.nom | 4 |
1 files changed, 4 insertions, 0 deletions
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 (..) |
