Commit Graph

904 Commits

Author SHA1 Message Date
2daebbff27 Added compatibility rule for compile errors. 2019-01-16 16:37:54 -08:00
8ca7749b55 Better error messaging (using pretty_error in more places) 2019-01-16 16:32:02 -08:00
25e1ccc025 Better/more realistic example code in the tests. 2019-01-15 18:32:11 -08:00
4e712fd8d3 Updated things API for inheritance. 2019-01-15 18:10:56 -08:00
e6d53864f7 Removed debug code. 2019-01-15 18:08:23 -08:00
5c96748802 Fix for formatting indented code with the format tool. 2019-01-15 17:48:35 -08:00
f6fe028f17 Merge branch 'master' into working 2019-01-15 15:55:50 -08:00
97970fd1ac Deleted accidentally added debugger file. 2019-01-15 15:55:24 -08:00
bf37295fae Updating to v6.15, which includes "external (...)" instead of separate
'externally' versions of stuff, and some auto-formatting.
2019-01-15 15:54:28 -08:00
ef70abe4b7 Added rule to precompile tools/compatibility when installing. 2019-01-15 15:21:18 -08:00
d38225679e Updated makefile to avoid precompiling and testing compatibility and tools. 2019-01-15 14:41:30 -08:00
d0ef1648a1 Removed dead code 2019-01-14 23:22:22 -08:00
706811fed4 Added warning for nomsu -c foo.lua 2019-01-14 18:01:06 -08:00
fb19d1af11 Fix for nomsu -v foo.lua, and made default nomsupath /opt/nomsu instead
of /opt
2019-01-14 18:00:04 -08:00
ce44ef9624 Added support for --upgrade-from=foo/1.0 without --upgrade-to= (assume
latest version)
2019-01-14 17:58:59 -08:00
94a437c584 Added 'with' to 'if it fails with $' clauses and made upgrade import
specific rules.
2019-01-14 17:50:57 -08:00
27433f4bf1 Added missing newline 2019-01-14 17:48:39 -08:00
ddef8be3df Moved compatibility to lib/ and fixed path searching for .peg files. 2019-01-14 17:14:57 -08:00
9fceff7e78 Added (SyntaxTree {...} ...) shorthand for SyntaxTree{..., ...} and
added some shebangs.
2019-01-14 16:32:11 -08:00
5eb1b276ad Fixed some bugs with append/add discrepancy, misguided ".." matching for
needs_space, and list items getting falsely forced into indented form.
2019-01-14 16:30:12 -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
2309b696fc Added 'use' 2019-01-11 15:28:41 -08:00
39676a87d5 Added fix for concatenating string and LuaCode 2019-01-11 15:28:18 -08:00
43e45b1452 Tweaked code to use both _ENV and _G for better compatibility of
precompiled Lua between Lua 5.2+ and LuaJIT
2019-01-11 15:27:41 -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
db552f56dc Autoformat 2019-01-08 16:41:28 -08:00
1f47f1aa28 Removed automatic file caching. 2019-01-08 16:38:45 -08:00
1d2bd858fd Made the source mapping optional (and disabled with -O2+) 2019-01-08 16:35:51 -08:00
fc1655e028 Made separate versions of (sh> ...) and (=sh ...) for versions that
care or don't care about the output.
2019-01-08 16:34:41 -08:00
d62631fb50 Added compatibility files and revamped core/math to use global variables
instead of compile actions. Also added mix (lerp) and smooth
(smoothstep) functions.
2019-01-08 16:33:23 -08:00
1914249e3b Made (external $x = $y) work using ($x = $y), so e.g. (external
[$x, $y] = [1, 2]) now works properly.
2019-01-08 16:30:21 -08:00
2048d4468a Added quit/exit and switched Files.read->exists. 2019-01-07 21:42:26 -08:00
eda80cf575 Renamed "source" to "file" to avoid confusion. 2019-01-07 21:40:56 -08:00
31e1bfa58f Moved require to top level. 2019-01-07 21:40:35 -08:00
80167c9df2 Fix for no-arg functioncalls of expressions (e.g. $fn()), and line
wrapping of list/dicts.
2019-01-07 21:40:01 -08:00
5f961d32c4 Fix for text interpolation of numbers. 2019-01-07 21:38:58 -08:00
3ceca7b635 Added clamp function 2019-01-07 20:44:39 -08:00
712b9bd682 Switched "ask" to be a proper function so it works as either an
expression or a statement.
2019-01-07 20:43:52 -08:00
f0fc8c0cf6 Added option to skip cache and piped stderr to /dev/null 2019-01-06 15:25:22 -08:00
467d6457f3 Made wildcards recursive and fixed default PREFIX 2019-01-04 14:50:51 -08:00
0507d8de8c Updating example 2019-01-01 17:31:50 -08:00
ad6c5172e8 Removing shim. 2019-01-01 17:17:52 -08:00
3e89092833 Some changes to the error API, a fix for statement block parsing, and
replacing ((foo 1 baz)'s meaning) with $(foo 1 baz).
2019-01-01 17:17:23 -08:00
e68eb04d69 Oops, missing paren. 2019-01-01 15:55:37 -08:00
a82b0d9d24 Added support for $(foo 1 baz 2) as a way to access (foo 1 baz 2)'s
meaning.
2019-01-01 15:53:21 -08:00
b6d3cbd61c Misc changes, including text indented interpolations are now indented
relative to the text, not the opening '("', code objects can now remove
all free vars, the REPL uses global vars. Error API is changing a bit.
2019-01-01 15:07:10 -08:00
0760d4fb64 Fix for bug in nomsupath checking of input files. 2018-12-31 02:29:55 -08:00
06cded44af Added todo 2018-12-31 02:16:32 -08:00
811aefd0df Added replace -q and chmod +x'd two tools. 2018-12-31 01:52:46 -08:00
0ae59c5a90 Added "replace" tool. 2018-12-31 01:39:58 -08:00