Commit Graph

31 Commits

Author SHA1 Message Date
3142ef46a3 Added 'make directory' API 2019-01-27 02:02:03 -08:00
c1c32688a4 Overhaul in progress, mostly working. Moved all the nomsu packages into
lib/, including core/*. Changes to how nomsu environments and importing
work.
2019-01-14 15:43:24 -08:00
0f0fb2256a Major overhaul of how modules and environments work, along with some
steamlining and tweaks to the makefile. Version bump: 6.14.13.8
2019-01-10 16:35:08 -08:00
1f47f1aa28 Removed automatic file caching. 2019-01-08 16:38:45 -08:00
f0fc8c0cf6 Added option to skip cache and piped stderr to /dev/null 2019-01-06 15:25:22 -08:00
2bbc035f5d Simplifying the filesystem code (no longer entangled with nomsupath) and
using that to simplify the tools. Now the tools directly take lists of
file paths rather than things that might go through nomsupath or
directories or get processed by filetype. Use your shell for globbing stuff like
`nomsu tools/test.nom core/*.nom`
2018-11-20 14:54:40 -08:00
acd1191fb0 Tweaks and API cleanup. 2018-11-19 17:21:17 -08:00
7d2b7199d8 Lots of cleanups, including expanded use of (... compiles to "text
literal") shorthand, deprecating Lua value, and more use of Lua "..."
with text interpolations.
2018-11-09 14:37:22 -08:00
652c29bdef Major overhaul, splitting nomsu_compiler into nomsu_environment,
nomsu_compiler, and nomsu_decompiler. Also added comprehensions.
2018-11-08 15:24:15 -08:00
307dea1881 Changed stub convention to (foo 1 baz 2) -> foo_1_baz instead of
foo_1_baz_2, removed "smext", made some cleanup changes.
2018-11-02 14:39:23 -07:00
83219f8522 Bumped version number, fixed REPL, and simplified/fixed (use %). 2018-10-31 03:52:00 -07:00
Bruce Hill
603c5b1245 Minor fixes/tidying. 2018-09-08 01:06:05 -07:00
Bruce Hill
f434b6b167 Fix for -e strings not getting executed because Files.walk didn't
respect spoofing.
2018-07-26 14:29:41 -07:00
Bruce Hill
fe47b7c2cb Removing debug print. 2018-07-25 13:46:47 -07:00
Bruce Hill
d7e297844c Fixed stdin handling. 2018-07-24 17:36:50 -07:00
Bruce Hill
bf224aacf2 Updated luafilesystem urls to point to both JIT and non-JIT versions. 2018-07-24 17:17:16 -07:00
Bruce Hill
b1c0446a3c Updating file stuff for better compatibility with Lua 5.2 and fixing
some bugs. Also updated README to provide more compatibility info and
list Lua5.2+ as a requirement.
2018-07-24 16:43:56 -07:00
Bruce Hill
b6c99c56a1 Updated package.nomsupath behavior to first search the installed
locations, *then* search the current directory. This makes the system `nomsu` run
properly, even if the local directory has a broken file that has the
same name as a nomsu file.
2018-07-24 15:09:55 -07:00
Bruce Hill
4fa9757fa2 Better handling of parsing non-filechunks text. 2018-07-22 14:57:56 -07:00
Bruce Hill
ae4670bd8e Improvements working towards better inline tests. Improved handling of
file spoofing and adding -e command line flag for executing a string.
2018-07-21 14:44:26 -07:00
Bruce Hill
47db74229d Fixed some bugs in trailing_line_len() and refactored tree_to_nomsu into
separate inline/not-inline functions.
2018-07-19 20:42:09 -07:00
Bruce Hill
cbd1437752 Optimization/simplification pass. 2018-07-17 16:13:55 -07:00
Bruce Hill
de34592dbe Adding some compatibility stuff. 2018-07-09 19:22:46 -07:00
Bruce Hill
11e9e36636 Simplified the command line interface. 2018-07-09 16:59:20 -07:00
Bruce Hill
0923b0192c Improvements to nomsu codegen (comments are now retained) and some
improvements to handling of stdin and fixes for error reporting.
2018-06-28 14:13:01 -07:00
Bruce Hill
65dc1f2196 Cleaning up metaprogramming a bit and fixing/adding test for recursion
control flow.
2018-06-26 15:53:00 -07:00
Bruce Hill
2db2c68ac3 Cleaning up code and shuffling things around. 2018-06-24 23:18:42 -07:00
Bruce Hill
b09db8f7df Cleaning up non LFS codepath for files and README 2018-06-24 18:39:34 -07:00
Bruce Hill
ad342b63b7 Simplifications/streamlining the Make process, and cleaning up some of
how command line interaction and `use %` work.
2018-06-24 16:11:40 -07:00
Bruce Hill
72c3cea22c Minor cleanup 2018-06-23 17:24:31 -07:00
Bruce Hill
863983202c Fixed up nomsupath behavior and refactored file stuff into its own file. 2018-06-23 17:22:43 -07:00