aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-08-30 14:16:09 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-08-30 14:16:18 -0700
commit18126da9c538046a93715d829722c818773b9ac1 (patch)
tree3a88e43636b85534ded21abd9f9f106b8ffbc037 /tools
parentba00294badff9d5f5d55e1080a17b13fea961f55 (diff)
Auto-upgraded to 3.7
Diffstat (limited to 'tools')
-rwxr-xr-xtools/autoformat.nom2
-rwxr-xr-xtools/find_action.nom4
-rwxr-xr-xtools/parse.nom5
-rwxr-xr-xtools/replace.nom4
-rwxr-xr-xtools/test.nom2
-rwxr-xr-xtools/upgrade.nom2
6 files changed, 10 insertions, 9 deletions
diff --git a/tools/autoformat.nom b/tools/autoformat.nom
index 719b826..dcccc21 100755
--- a/tools/autoformat.nom
+++ b/tools/autoformat.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.6.5.6
+#!/usr/bin/env nomsu -V3.7.5.6
#
Auto-format Nomsu code. Usage:
nomsu tools/autoformat.nom [-i] file1 file2 directory1 ...
diff --git a/tools/find_action.nom b/tools/find_action.nom
index 051899a..7067959 100755
--- a/tools/find_action.nom
+++ b/tools/find_action.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.6.5.6
+#!/usr/bin/env nomsu -V3.7.5.6
#
Find an action by its stub. Usage:
nomsu tools/find_action.nom "foo %" file1 file2 directory1 ...
@@ -9,7 +9,7 @@ use "lib/consolecolor.nom"
%stub = (command line args).1
say "Looking for stub: \%stub..."
-%files = ((command line args).% for % in 2 to (|| (command line args) ||))
+%files = ((command line args).% for % in 2 to (size of (command line args)))
for %path in %files:
for file %filename in %path:
unless (%filename matches "%.nom$") (do next %filename)
diff --git a/tools/parse.nom b/tools/parse.nom
index 0f71123..0622e27 100755
--- a/tools/parse.nom
+++ b/tools/parse.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.6.5.6
+#!/usr/bin/env nomsu -V3.7.5.6
#
Tool to print out a parse tree of files in an easy-to-read format. Usage:
nomsu tools/parse.nom file1 file2 directory1 ...
@@ -10,8 +10,9 @@ action [print tree %t at indent %indent]:
"Action":
say "\(%indent)Action (\(%t.stub)):"
if %t.target:
- say "\(%indent) Target:"
+ say "\%indent Target:"
print tree %t.target at indent "\%indent "
+
for %arg in %t:
if (%arg is syntax tree):
print tree %arg at indent "\%indent "
diff --git a/tools/replace.nom b/tools/replace.nom
index 3140675..76617cf 100755
--- a/tools/replace.nom
+++ b/tools/replace.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V2.5.5.5
+#!/usr/bin/env nomsu -V3.7.5.6
#
Tool to find and replace one tree with another.
nomsu tools/replace.nom [-i] tree_to_replace replacement file1 file2 directory1 ...
@@ -13,7 +13,7 @@ if (%args.1 is "-i"):
%inplace = (yes)
%args::remove index 1
-if ((length of %args) < 3):
+if ((size of %args) < 3):
say "Usage: nomsu tools/replace.nom [-i] tree_to_replace replacement files..."
lua> "os.exit(1)"
diff --git a/tools/test.nom b/tools/test.nom
index 2446069..07f8c7d 100755
--- a/tools/test.nom
+++ b/tools/test.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.6.5.6
+#!/usr/bin/env nomsu -V3.7.5.6
#
Tool to run all tests in a file (i.e. the code block inside a call to 'test %'). Usage:
nomsu tools/test.nom file1 file2 directory1 ...
diff --git a/tools/upgrade.nom b/tools/upgrade.nom
index 4676f77..15f9b8c 100755
--- a/tools/upgrade.nom
+++ b/tools/upgrade.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.6.5.6
+#!/usr/bin/env nomsu -V3.7.5.6
#
Tool to automatically update code from old versions of Nomsu. Usage:
nomsu tools/upgrade.nom [-i] file1 file2 directory1 ...