3b6d3553c8
Added to tutorial.
2019-01-19 18:00:44 -08:00
5a99a24176
Better error handling.
2019-01-18 20:46:10 -08:00
13cab23e20
Improving the tutorial.
2019-01-18 20:45:38 -08:00
d92685ab95
Added tutorial (WIP)
2019-01-18 14:31:37 -08:00
10bd72e858
Added tree
back as a parameter to compile actions, which helps with
...
better error reporting, e.g. for (fail) (no arguments). Overall better
error reporting now. Also added shorthand ("Action" tree with ...) for
(SyntaxTree {.type = "Action", .1 = ...}).
2019-01-18 14:22:48 -08:00
520acd3979
Overhauling OO-API a little to make it more minimalistic.
2019-01-16 21:33:30 -08:00
1cbf9f3e07
Moved things into core/
2019-01-16 16:38:15 -08:00
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
5c96748802
Fix for formatting indented code with the format tool.
2019-01-15 17:48:35 -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
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
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
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
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
faaf5311c8
Updated shebangs
2018-12-31 00:20:07 -08:00
5059c081ac
Auto-upgraded code.
2018-12-30 23:58:47 -08:00
8a3c324087
Update to new syntax.
2018-12-30 19:04:45 -08:00
a7d912a33a
Initial pass on updating syntax.
2018-12-18 19:30:12 -08:00
d3905474c9
Removed EOL comments
2018-12-14 20:54:18 -08:00
4fe63f253f
Auto-updated to version 5
2018-12-14 20:21:03 -08:00
efd743591e
Renamed append/concat_append to add/concat_add for Code objects.
2018-11-29 14:57:56 -08:00
5027bd4f0f
Upgraded/autoformatted.
2018-11-26 16:28:06 -08:00
a89d69e843
Autoformatted/auto-upgraded.
2018-11-19 17:37:37 -08:00
acd1191fb0
Tweaks and API cleanup.
2018-11-19 17:21:17 -08:00
7f47d42040
In-progress (but working) overhaul of some elements including: function
...
calls, lib/thing.nom API, multi-assignments, varargs, etc.
2018-11-17 14:39:08 -08:00
34a3dd22a4
Added 'an' alias for things.
2018-11-12 14:25:11 -08:00
4efe44ed27
Fully upgraded to 4.10.12.7, including deprecating the old list/dict
...
comprehension methods, in favor of the new native support.
2018-11-11 15:50:46 -08:00
ba03cb67c3
Added shebang and descriptive comment.
2018-11-11 15:37:57 -08:00
fa3f598fc3
Fixing the upgrade pipeline, plus some misc. fixes.
2018-11-09 17:02:53 -08:00
69aaea030e
No longer passing tree
to every compile action. Now, you can just
...
return a LuaCode object, and it will automatically get a source from
`tree` if it didn't already have a source. Plus some fixes/cleanup.
2018-11-09 16:41:19 -08:00
a2f07415c5
Deprecating (% as lua statements) and (% as lua return)
2018-11-09 14:48:40 -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
1f3660f393
Added things
library (improved version of lib/object.nom).
2018-11-06 15:15:21 -08:00
c8ccbe5f42
Removed utils.lua, simplified some metaprogramming stuff, added native support
...
for calling functions with (%a %b %c) instead of (call %a with [%b,
%c]), renamed _List -> List, _Dict -> Dict, improved example code.
2018-11-06 15:15:14 -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
ea3197aaff
Fully working version of (action [foo]: baz) -> ((foo) means: baz)
...
refactor and misc other changes.
2018-10-30 23:42:36 -07:00
23abab4f80
Some cleanups and fixes, made the parser more permissive of prematurely
...
terminated files.
2018-10-29 13:00:30 -07:00
b43432e647
Fixed all syntax errors, got original (non-nomnom) tests passing.
2018-09-26 13:05:47 -07:00
f2048235f5
Incremental checkin, currently not working, just saving progress.
2018-09-21 00:30:44 -07:00
Bruce Hill
79d4bd5125
Got rid of repr() use and replaced with :as_lua() or :as_nomsu() in as
...
many places as possible.
2018-09-18 19:49:29 -07:00