diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-12 22:30:41 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-12 22:30:41 -0700 |
| commit | 57268d8c04355d0897222c2df48388df08e45a87 (patch) | |
| tree | 62f1d2b8dc2466aa1ae13b816189079cccc1a134 | |
| parent | ac8dcb2ebf8b1b07b115a0e0d321079e3c103a91 (diff) | |
Renamed language again.
| -rw-r--r-- | README.md | 8 | ||||
| -rw-r--r-- | nomsu.lua (renamed from nomsub.lua) | 0 | ||||
| -rwxr-xr-x | nomsu.moon (renamed from nomsub.moon) | 8 |
3 files changed, 8 insertions, 8 deletions
@@ -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. @@ -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, {}) ]] |
