diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/base64.nom | 6 | ||||
| -rw-r--r-- | lib/consolecolor.nom | 2 | ||||
| -rw-r--r-- | lib/file_hash.nom | 7 | ||||
| -rw-r--r-- | lib/object.nom | 6 | ||||
| -rw-r--r-- | lib/os.nom | 4 | ||||
| -rw-r--r-- | lib/training_wheels.nom | 2 | ||||
| -rw-r--r-- | lib/version.nom | 2 |
7 files changed, 15 insertions, 14 deletions
diff --git a/lib/base64.nom b/lib/base64.nom index 92ce7c4..366ac3e 100644 --- a/lib/base64.nom +++ b/lib/base64.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V3.7.5.6 +#!/usr/bin/env nomsu -V3.8.7.6 # This file defines actions for encoding/decoding base 64, as specified in: https://tools.ietf.org/html/rfc4648 @@ -39,7 +39,7 @@ action [base64 %str, base64 encode %str, %str base64]: %chars::add "=" %chars::add "=" - return (%chars joined) + return (%chars::joined) action [chr %] (=lua "string.char(\%)") action [decode base64 %str, %str base64 decoded, base64 decode %str]: @@ -52,4 +52,4 @@ action [decode base64 %str, %str base64 decoded, base64 decode %str]: if (%str.(%i + 3) == "="): stop %chars::add (chr (((%indices.3 & 3) << 6) + %indices.4)) - return (%chars joined) + return (%chars::joined) diff --git a/lib/consolecolor.nom b/lib/consolecolor.nom index 7809f86..c86e6d1 100644 --- a/lib/consolecolor.nom +++ b/lib/consolecolor.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V3.7.5.6 +#!/usr/bin/env nomsu -V3.8.7.6 # This file defines actions for ANSI console color escape codes. diff --git a/lib/file_hash.nom b/lib/file_hash.nom index 35b8340..5553b35 100644 --- a/lib/file_hash.nom +++ b/lib/file_hash.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V3.7.5.6 +#!/usr/bin/env nomsu -V3.8.7.6 # This file defines some actions for hashing files and looking up files by hash. @@ -31,9 +31,10 @@ if %use_sha1: return (base64 %hash) ..else: # TODO: remove warning? - say "\027[31;1mWARNING: OpenSSL module not found. Defaulting to a non-cryptographically secure hash function.\027[0m" + say ".." + \027[31;1mWARNING: OpenSSL module not found. Defaulting to a non-cryptographically secure hash function.\027[0m action [hash %]: - %bytes = (bytes of %) + %bytes = (%::bytes) %hash = (%bytes.1 << 7) for %i in 2 to (size of %bytes): %hash = ((1000003 * %hash) ~ %bytes.%i) diff --git a/lib/object.nom b/lib/object.nom index 81632c2..897657c 100644 --- a/lib/object.nom +++ b/lib/object.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V3.7.5.6 +#!/usr/bin/env nomsu -V3.8.7.6 # This file contains the implementation of an Object-Oriented programming system. @@ -8,7 +8,7 @@ test: my action [set up]: %me.barks or= 0 my action [bark, woof]: %barks = ("Bark!" for % in 1 to %me.barks) - return (%barks joined with " ") + return (%barks::joined with " ") my action [get pissed off]: %me.barks += 1 @@ -31,7 +31,7 @@ test: my action [sploot] "splooted" my action [bark, woof]: %barks = ("Yip!" for % in 1 to %me.barks) - return (%barks joined with " ") + return (%barks::joined with " ") %corg = (new Corgi) assume (%corg.barks == 0) @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V3.7.5.6 +#!/usr/bin/env nomsu -V3.8.7.6 # This file defines some actions that interact with the operating system and filesystem. @@ -66,4 +66,4 @@ action [source lines of %tree]: (..) (line % in %file) for % in (line number of %source.start in %file) to (..) line number of %source.stop in %file - ..joined with "\n" + ..::joined with "\n" diff --git a/lib/training_wheels.nom b/lib/training_wheels.nom index e98392a..8e197c4 100644 --- a/lib/training_wheels.nom +++ b/lib/training_wheels.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V3.7.5.6 +#!/usr/bin/env nomsu -V3.8.7.6 # This file contains a set of definitions that bring some familiar language features from other languages into nomsu (e.g. "||" and "continue") diff --git a/lib/version.nom b/lib/version.nom index 12e691a..3c876b8 100644 --- a/lib/version.nom +++ b/lib/version.nom @@ -1,3 +1,3 @@ -#!/usr/bin/env nomsu -V3.7.5.6 +#!/usr/bin/env nomsu -V3.8.7.6 # This file sets the current library version. lua> "NOMSU_LIB_VERSION = 6" |
