aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: c611cf932884f14f1e2677ba5ae45eed0bdc94e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This 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.

The language compiler was written in [moonscript](http://moonscript.org/), using the
[lpeg library](http://www.inf.puc-rio.br/~roberto/lpeg/) for parsing. All of the moon files
have been compiled into lua for convenience.

In order to run a .nom file, run `lua nomic.lua your_file.nom`. Code can also be compiled
into lua code directly, which still requires nomic.lua as a dependency, but bypasses the
compilation phase when it runs. To compile, run `lua nomic.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.

core.nom contains some *extremely* helpful and basic core functionality for the language,
written in the language itself, so I recommend adding `run file "core.nom"` to the top of
your files.