Commit Graph

52 Commits

Author SHA1 Message Date
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
f304138530 Deduplicated goto label syntax (now just use (--- (label) ---)) 2018-11-19 17:44:46 -08:00
a89d69e843 Autoformatted/auto-upgraded. 2018-11-19 17:37:37 -08:00
43ff3892f3 Fixed a string indexing issue. 2018-11-19 17:28:43 -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
c9db20040e Fixed compatibility thing with NomsuCode::from 2018-11-11 18:34:31 -08:00
fb8f8ed99e Fixed shebang not getting newline 2018-11-11 18:11:17 -08:00
c5ea506acc Adding compat for deprecating math convenience functions. 2018-11-11 16:28:09 -08:00
9d82d522c1 Fixed some autoformatting stuff, and prepping to deprecate some math
shorthand.
2018-11-11 16:27:01 -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
5f38d73004 Now preserving hex numbers with "0xF00" -> parse -> decompile ->
"0xF00", fix for (compile error at ...)
2018-11-11 15:26:30 -08:00
9a75d25c84 Lots of fixes to the upgrading and codegen/autoformatting pipeline, also
deleted nomnom files, since they're mostly not needed anymore.
2018-11-11 15:05:56 -08:00
ed70165294 Better handling of shebangs and comments at the top of a file. 2018-11-09 17:33:04 -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
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
7a35e38d87 Renamed (action %) -> (%'s meaning) 2018-10-31 15:05:17 -07:00
f43d8c58f7 Added upgrade file. 2018-10-31 03:54:16 -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
Bruce Hill
b721356d8b Added 3.8 upgrade. 2018-09-14 19:18:18 -07:00
Bruce Hill
e22c35681f Auto-upgraded everything. 2018-09-14 19:17:16 -07:00
Bruce Hill
7c6047254e Upgraded to 3.8 (text method changes) and fixed some bugs in
tree_to_nomsu.
2018-09-10 16:26:27 -07:00
Bruce Hill
c859eac2be Fixed "A_" prefix. 2018-09-10 16:04:13 -07:00
Bruce Hill
18126da9c5 Auto-upgraded to 3.7 2018-08-30 14:16:18 -07:00
Bruce Hill
ab38fd19fa Fixed obnoxious bug where List was getting used instead of a Dict,
causing havoc when .first and .pop were being accessed.
2018-08-30 14:07:40 -07:00
Bruce Hill
70b8ee9070 Fixed typo in 3.7 upgrade. 2018-08-29 19:41:46 -07:00
Bruce Hill
4f30e02acb Handling more compatibility stuff, including Lua 5.4, and a backup for
if openssl module is not found, and moving containers (List/Dict) into
their own file, as well as bit operators (and support for __bxor, etc.
metamethods in Lua 5.2/LuaJIT)
2018-08-29 19:39:15 -07:00
Bruce Hill
811fdd6856 Tweaked version 3.6 to include deprecating list append/removal functions
in favor of using a method call style.
2018-08-29 16:00:04 -07:00
Bruce Hill
dcb5e8add2 Fully updated to 3.6, deprecated old LuaCode global functions like "to 1
write 2" and replaced them with method calls like "1::append 2"
2018-08-29 15:10:27 -07:00
Bruce Hill
23b52bc22d Intermediate step in upgrading to 3.6. Fixed a bug with upgrading
methods.
2018-08-29 15:03:03 -07:00
Bruce Hill
436982c6ba Added deprecation of traceback actions. 2018-08-29 14:06:25 -07:00
Bruce Hill
5ee9bcb7fb Upgraded version to 3.5.5.6, corresponding to Object Oriented changes. 2018-08-28 15:34:45 -07:00
Bruce Hill
2ec4f3117e Added compatibility file. 2018-08-28 15:08:20 -07:00
Bruce Hill
930d522fbc Bunch of miscellaneous changes. Paved the way a little bit for having
different compiler domains.
2018-08-27 13:39:22 -07:00
Bruce Hill
c6a7b0be9e Added compatibility for 2.5.5.5 (file hash changes). 2018-07-30 19:39:32 -07:00
Bruce Hill
a69555bc03 Updated version numbers. 2018-07-25 13:49:17 -07:00
Bruce Hill
ca653cbb84 Added more file descriptions. 2018-07-23 15:56:59 -07:00
Bruce Hill
4c8a8a0fe1 Fixed action using (..) instead of ":" 2018-07-23 15:46:14 -07:00
Bruce Hill
6e5d551071 Run 'use "core"' by default before running anything else, unless --no-core command line flag is used. 2018-07-23 14:54:05 -07:00
Bruce Hill
addac10a47 Re-autoformatted everything. The main changes are: no longer adding a
newline after 1-line indented code inside blocks, and forcing files to
have a trailing newline. The trailing newline thing created a lot of
spurious changes.
2018-07-22 15:01:05 -07:00
Bruce Hill
6728587dfc Auto-formatted and auto-upgraded everything! 2018-07-20 20:27:27 -07:00
Bruce Hill
c9df1bc3e8 Made the assumption that unspecified code is from the latest nomsu, not
the oldest.
2018-07-20 20:19:27 -07:00
Bruce Hill
24b8649c33 Tweaks to the API for text matching. 2018-07-20 17:56:15 -07:00
Bruce Hill
568e21dc29 Removed 'block' from everywhere except inside actions and
FileChunks. They're not really supposed to go there, and if they do, it
will cause an error on compilation. This just fixes that to be a parse
error instead of a compile error.
2018-07-20 17:54:58 -07:00
Bruce Hill
bf67a61013 Updating to version 2.4.4.3, with new syntax for multi-statement 'if'
and switch statements.
2018-07-18 17:56:15 -07:00
Bruce Hill
acb86f78c3 Genericizing. 2018-07-18 14:54:48 -07:00
Bruce Hill
d5cfaa37be Upgrading to version 2.3 (main change: "=" instead of "<-" for
assignment)
2018-07-18 01:28:17 -07:00
Bruce Hill
c7c657d38f Prep work for next big upgrade, including adding a shorthand for
upgrading actions similarly to 'parse % as %'
2018-07-18 01:04:57 -07:00