Thun/implementations/Nim
Simon Forman 3f7adea56f Read defs.txt at compile-time.
I'd like to build the dict datastructure at compile-time too but I'm not
going to figure that out tonight.  It's enough that the defs are
embedded in the executable.  (You can see them with the strings utility.)
2022-09-14 20:08:40 -07:00
..
htmldocs Uppercase Nim. 2022-02-19 07:48:51 -08:00
Makefile Depend on the general def.txt file. 2022-03-09 12:40:02 -08:00
README.md Uppercase Nim. 2022-02-19 07:48:51 -08:00
defs.nim Uppercase Nim. 2022-02-19 07:48:51 -08:00
defs.txt Read defs.txt at compile-time. 2022-09-14 20:08:40 -07:00
joy.nim Uppercase Nim. 2022-02-19 07:48:51 -08:00
joylib.nim Uppercase Nim. 2022-02-19 07:48:51 -08:00
printer.nim Uppercase Nim. 2022-02-19 07:48:51 -08:00
reader.nim Uppercase Nim. 2022-02-19 07:48:51 -08:00
simplejoy.nim Read defs.txt at compile-time. 2022-09-14 20:08:40 -07:00
types.nim Uppercase Nim. 2022-02-19 07:48:51 -08:00
utils.nim Uppercase Nim. 2022-02-19 07:48:51 -08:00

README.md

Joy interpreter in Nim

This interpreter written in Nim is part of the Thun project, which includes interpreters written in Python and Prolog, and some explorations towards compilers for Joy written in Prolog.

Building

To build an executable just run:

nim c joy.nim

To build and immediately run an executable use:

nim c -r joy.nim

To build a smaller binary do:

nim c -d:release joy.nim
strip --strip-debug joy.exe

Dependencies

TODOs:

  • link to other Thun sub-projects & info on Joy in general
  • ctrl-c should exit cleanly
  • graphics?
  • words and help?
  • How to integrate docs?

nim cc
-d:release
--stackTrace:off
--lineTrace:off
--checks:off
--assertions:off
--debugger:native
joy.nim

nim doc --project --index:on --git.url:"https://git.sr.ht/~sforman/Bliss" --git.commit:10b5651ed242fb16c29f2c1f7340d77f65926ca4 --outdir:htmldocs joy.nim

10b5651ed2/item/types.nim (L26)