Commit Graph

744 Commits

Author SHA1 Message Date
2b4196bc20 Added (% as hex) and fixed bug with text interpolation codegen not
adding parens around indexchains.
2018-11-11 18:53:06 -08:00
2305f075b7 Fixed whitespace 2018-11-11 18:35:19 -08:00
c9db20040e Fixed compatibility thing with NomsuCode::from 2018-11-11 18:34:31 -08:00
171e9d674e Re-implemented nomsu -> lua comment translation and added file chunk
comments.
2018-11-11 18:28:34 -08:00
3c7a0ff2ea Added doc 2018-11-11 18:14:52 -08:00
fb8f8ed99e Fixed shebang not getting newline 2018-11-11 18:11:17 -08:00
b918668f18 Fixed -O optimization flag. 2018-11-11 18:03:25 -08:00
9b6caad828 Updating README. 2018-11-11 17:52:00 -08:00
81fda96301 Updated to use 'set' syntax instead of ": yes" 2018-11-11 16:45:48 -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
370fad9cd3 Fixed whitespace error. 2018-11-11 16:21:13 -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
33d44fa8fc Style tweak: using (retry) instead of %retry for goto label. 2018-11-11 15:29:59 -08:00
aa2902256f Removing compile-error shim. 2018-11-11 15:27:55 -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
65ec3f597f Recompile 2018-11-10 00:29:25 -08:00
1b9d57844e Tweaks to line clumping 2018-11-10 00:29:20 -08:00
771007bc4d Fixed word clumping with linebreaks. 2018-11-09 19:32:20 -08:00
b5a5b7f90d Fixed other place for clumping "'" 2018-11-09 17:53:30 -08:00
63c14bdbc3 Changed clumping to only be different for "'", not other operators. 2018-11-09 17:50:12 -08:00
c36798f2ad Recompile 2018-11-09 17:48:56 -08:00
b2cec10592 Fixed 's clumping for stuff like (%foo's metatable) 2018-11-09 17:48:52 -08:00
6fa1cb23d1 Fixed decompile issue with short actions not getting indented. 2018-11-09 17:43:25 -08:00
b236ad88a9 Fixed comment clumping issue. 2018-11-09 17:36:36 -08:00
083ed530bd Fixed text upgrading. 2018-11-09 17:34:27 -08:00
ed70165294 Better handling of shebangs and comments at the top of a file. 2018-11-09 17:33:04 -08:00
e96ae0c78d Removed debug code. 2018-11-09 17:25:16 -08:00
d6f33ab194 Improvements for parenthesization of escaped nomsu. 2018-11-09 17:20:51 -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
ba96cdfa07 Fixes/upgrades. 2018-11-08 16:59:10 -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
0f17c5eb9a Merge branch 'master' into working 2018-11-02 15:17:49 -07:00
dc41f30c73 Tweak 2018-11-02 15:10:22 -07: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
d0c3c57f7b Simplified AST to just use a single moonscript class called "SyntaxTree"
instead of a different metatable for each type of syntax tree.
2018-10-31 15:54:51 -07:00
ec92b0fccd More explicit. 2018-10-31 15:10:03 -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
83219f8522 Bumped version number, fixed REPL, and simplified/fixed (use %). 2018-10-31 03:52:00 -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
e7e84c9eda Fix for compiler not parenthesizing method targets, fix for parser not
recognizing \ line continuation, and improvements to
upgrade tool API.
2018-10-30 20:32:49 -07:00
fdf7a537c8 Versioning fixes. 2018-10-30 19:50:20 -07:00