aboutsummaryrefslogtreecommitdiff
path: root/nomsu_environment.lua
AgeCommit message (Collapse)Author
2019-03-09Passing around DictEntry and changing API to _1_as_an_iterableBruce Hill
2019-03-04Fixed a shebang issueBruce Hill
2019-02-06Moving to better, more centralized versioning system. Now the NomsuBruce Hill
version is just defined as a list at the top of nomsu.moon, and uses X.Y.Z form instead of X.Y.Z.W. Added a ([...], from 2) method and a ([...], up to 5) method, and fixed a few upgrade bugs.
2019-02-05Bunch of changes:Bruce Hill
- Added shebangs to generated code output - SyntaxTree:map() -> SyntaxTree:with(), and corresponding changes to metaprogramming API - Added (return Lua 1) shorthand for (return (Lua 1)) - (1 and 2 and 3) compile rule mapping to -> (1 and (*extra arguments*)) - Don't scan for errors, just report them when compiling - Syntax changes: - Added prefix actions (e.g. #$foo) - Operator chars now include utf8 chars - Ditch "escaped nomsu" type (use (\ 1) compile action instead)
2019-01-29Switched to have colors/utf8 be optional, fixed an issue with currentlyBruce Hill
running files leaking when errors occurred (causing spurious circular import errors), and improved tutorial.
2019-01-25Added metatables for bool, number, function, coroutine. AddedBruce Hill
run-time check to make sure precompiled code used the same version of Lua. Methods can now be used in (* compiles to *), etc.
2019-01-23Added _1_as_text(), which converts true -> yes, false -> no.Bruce Hill
2019-01-22Moved all the text method stuff into text.moon instead of splittingBruce Hill
across string2/containers. Modified the type stuff to output better type names and use (a Dict) and (a List) instead of (Dict) and (List). (Text) now also has a proper constructor. (assume) now also handles a bunch of different assumptions with smart error messages.
2019-01-18Better error handling.Bruce Hill
2019-01-16Better error messaging (using pretty_error in more places)Bruce Hill
2019-01-15Updating to v6.15, which includes "external (...)" instead of separateBruce Hill
'externally' versions of stuff, and some auto-formatting.
2019-01-14Moved compatibility to lib/ and fixed path searching for .peg files.Bruce Hill
2019-01-14Overhaul in progress, mostly working. Moved all the nomsu packages intoBruce Hill
lib/, including core/*. Changes to how nomsu environments and importing work.
2019-01-11Tweaked code to use both _ENV and _G for better compatibility ofBruce Hill
precompiled Lua between Lua 5.2+ and LuaJIT
2019-01-10Major overhaul of how modules and environments work, along with someBruce Hill
steamlining and tweaks to the makefile. Version bump: 6.14.13.8
2019-01-08Made the source mapping optional (and disabled with -O2+)Bruce Hill
2019-01-07Added quit/exit and switched Files.read->exists.Bruce Hill
2018-12-31Fixed bug where cached files would incorrectly appear to not have beenBruce Hill
found.
2018-12-15Fix for files getting run twice by (use "")Bruce Hill
2018-12-14Fixed some bugs, including upgrade --upgrade-from=version not working.Bruce Hill
Also updated the README.
2018-11-26Updated and fixed the command line API. Introduced the "-t tool" flagBruce Hill
for more concisely running tools, removed the "-I file" and replaced it with "-m files..."
2018-11-23Tweaks and tidying.Bruce Hill
2018-11-20Simplifying the filesystem code (no longer entangled with nomsupath) andBruce Hill
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-19Tweaks and API cleanup.Bruce Hill
2018-11-17In-progress (but working) overhaul of some elements including: functionBruce Hill
calls, lib/thing.nom API, multi-assignments, varargs, etc.
2018-11-11Cleaning up say/print and io.write (now you can use (say "foo" inline))Bruce Hill
2018-11-11Fixed compatibility thing with NomsuCode::fromBruce Hill
2018-11-11Re-implemented nomsu -> lua comment translation and added file chunkBruce Hill
comments.
2018-11-11Fixed -O optimization flag.Bruce Hill
2018-11-11Lots of fixes to the upgrading and codegen/autoformatting pipeline, alsoBruce Hill
deleted nomnom files, since they're mostly not needed anymore.
2018-11-09Removed debug code.Bruce Hill
2018-11-09No longer passing `tree` to every compile action. Now, you can justBruce Hill
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-09Deprecating (% as lua statements) and (% as lua return)Bruce Hill
2018-11-09Lots of cleanups, including expanded use of (... compiles to "textBruce Hill
literal") shorthand, deprecating Lua value, and more use of Lua "..." with text interpolations.
2018-11-08Major overhaul, splitting nomsu_compiler into nomsu_environment,Bruce Hill
nomsu_compiler, and nomsu_decompiler. Also added comprehensions.