From 4c0fabab630eaa228e8d65fe40bdde243eb1d1fd Mon Sep 17 00:00:00 2001 From: dermagen Date: Tue, 23 Jul 2024 03:02:06 -0400 Subject: [PATCH] Create README.md --- pre/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pre/README.md diff --git a/pre/README.md b/pre/README.md new file mode 100644 index 0000000..fa67f61 --- /dev/null +++ b/pre/README.md @@ -0,0 +1,17 @@ +# SKINT Precursors + +This directory contains original Scheme code for autogenerated parts od SKINT C source. +To re-generate these files, one has to have working version of SKINT interpreter and [SFC compiler](https://github.com/false-schemers/sharpF). +Generation is performed with the help of Skint scripts located in the `/pre` subdirectory. Assuming that both `skint` and `sfc` binaries are just above +the skint directory tree, the following commands will do the trick: + +``` +$ ./skint skint/pre/nsf2h.ssc skint/pre/n.sf skint/n.h +$ ./skint skint/pre/nsf2c.ssc skint/pre/n.sf skint/n.c +$ ./skint skint/pre/scm2c.ssc skint/pre/s.scm skint/s.c +$ ./skint skint/pre/scm2c.ssc skint/pre/t.scm skint/t.c +$ ./skint skint/pre/ksf2c.ssc ./sfc skint/pre/k.sf skint/k.c +``` + +Please note that this step is optional, but may be needed to make enhancements and fix bugs in the +autogenerated C code.