aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-12 22:30:41 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-12 22:30:41 -0700
commit57268d8c04355d0897222c2df48388df08e45a87 (patch)
tree62f1d2b8dc2466aa1ae13b816189079cccc1a134
parentac8dcb2ebf8b1b07b115a0e0d321079e3c103a91 (diff)
Renamed language again.
-rw-r--r--README.md8
-rw-r--r--nomsu.lua (renamed from nomsub.lua)0
-rwxr-xr-xnomsu.moon (renamed from nomsub.moon)8
3 files changed, 8 insertions, 8 deletions
diff --git a/README.md b/README.md
index e371e49..0d1e8e2 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-Nomsub (named after **Nom**ic, and its creator, Peter **Sub**er) is a programming language
+Nomsu (named after **Nom**ic, and its creator, Peter **Su**ber) is a programming language
designed to be used for playing games of Nomic, or engaging in other similar activities
revolving around natural language rule-making and self modification.
@@ -7,9 +7,9 @@ The language compiler was written in [Moonscript](http://moonscript.org/), using
so you need to install it in order to run the compiler. All of the moon files have been
compiled into lua for convenience, so Moonscript is not a dependency.
-In order to run a .nom file, run `lua nomsub.lua your_file.nom`. Code can also be compiled
-into lua code directly, which still requires nomsub.lua as a dependency, but bypasses the
-compilation phase when it runs. To compile, run `lua nomsub.lua your_file.nom output_file.lua`
+In order to run a .nom file, run `lua nomsu.lua your_file.nom`. Code can also be compiled
+into lua code directly, which still requires nomsu.lua as a dependency, but bypasses the
+compilation phase when it runs. To compile, run `lua nomsu.lua your_file.nom output_file.lua`
which produces an output file which can be run with the command `lua output_file.lua`.
Example code can be found in the examples folder.
diff --git a/nomsub.lua b/nomsu.lua
index f111fc7..f111fc7 100644
--- a/nomsub.lua
+++ b/nomsu.lua
diff --git a/nomsub.moon b/nomsu.moon
index 812574c..243dd64 100755
--- a/nomsub.moon
+++ b/nomsu.moon
@@ -530,12 +530,12 @@ class Compiler
return @run(file\read('*a'))
--- Run on the command line via "./nomic.moon input_file.nom" to execute
--- and "./nomic.moon input_file.nom output_file.lua" to compile (use "-" to compile to stdout)
+-- Run on the command line via "./nomsu.moon input_file.nom" to execute
+-- and "./nomsu.moon input_file.nom output_file.lua" to compile (use "-" to compile to stdout)
if arg[1]
c = Compiler()
input = io.open(arg[1])\read("*a")
- -- Kinda hacky, if run via "./nomic.moon file.nom -", then silence print and io.write
+ -- Kinda hacky, if run via "./nomsu.moon file.nom -", then silence print and io.write
-- during execution and re-enable them to print out the generated source code
_print = print
_io_write = io.write
@@ -559,7 +559,7 @@ if arg[1]
end
local utils = require('utils')
- local Compiler = require('nomic')
+ local Compiler = require('nomsu')
local c = Compiler(require('core'))
load()(c, {})
]]