aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
AgeCommit message (Collapse)Author
2018-10-31Bumped version number, fixed REPL, and simplified/fixed (use %).Bruce Hill
2018-10-30Fully working version of (action [foo]: baz) -> ((foo) means: baz)Bruce Hill
refactor and misc other changes.
2018-10-30Fix for compiler not parenthesizing method targets, fix for parser notBruce Hill
recognizing \ line continuation, and improvements to upgrade tool API.
2018-10-30Versioning fixes.Bruce Hill
2018-10-29Some cleanups and fixes, made the parser more permissive of prematurelyBruce Hill
terminated files.
2018-09-26Fixes for actions with targets colliding with compiler actions, and luaBruce Hill
keywords as dict keys.
2018-09-21Rebuild.Bruce Hill
2018-09-18Got rid of repr() use and replaced with :as_lua() or :as_nomsu() in asBruce Hill
many places as possible.
2018-09-17Added support for compile actions returning trees, and compiling blocksBruce Hill
into values.
2018-09-16Added support for compile actions returning syntax trees, which will getBruce Hill
recompiled until they produce Lua code.
2018-09-16Much better error reporting for compile errors (i.e. not parse errors),Bruce Hill
using the pretty_error system.
2018-09-16Working module system.Bruce Hill
2018-09-15Initial working version.Bruce Hill
2018-09-15Better parsing of strings and handling of non-printable characters andBruce Hill
tabs.
2018-09-14Auto-upgraded everything.Bruce Hill
2018-09-14Fixed comments in nomsu codegen.Bruce Hill
2018-09-14Updated compiler to produce cool string output.Bruce Hill
2018-09-14Added error truncating.Bruce Hill
2018-09-14Using more concise peg file finding.Bruce Hill
2018-09-14RecompileBruce Hill
2018-09-14Renaming parser2 to parser.Bruce Hill
2018-09-14Removing the remnants of the old parser system.Bruce Hill
2018-09-14Upgraded nomsu.1.peg to tidier version.Bruce Hill
2018-09-14Upgraded nomsu.2.peg and fixed minor bug in Source serialization inBruce Hill
trees.
2018-09-14Fixes and improvements, and ported nomsu.3.peg to new tidier syntax.Bruce Hill
2018-09-12Initial working version.Bruce Hill
2018-09-10Removing dead code and string.as_lua_id() (now just set on stringBruce Hill
metametatable)
2018-09-10Fixed tree_to_nomsu for method calls that span lines.Bruce Hill
2018-09-10Upgraded to 3.8 (text method changes) and fixed some bugs inBruce Hill
tree_to_nomsu.
2018-09-10Shifting towards more text methods instead of text global functions.Bruce Hill
Also fixed a bug with method call parenthesizing.
2018-09-06Removed the mandatory "_" prefix for Nomsu variables, renamed "list" andBruce Hill
"dict" to "List" and "Dict", or in Nomsu's environment, "_List" and "_Dict", removed uuid.lua and replaced it with core/id.nom for handling IDs.
2018-08-31Removing the "A_" prefix on action names, and improving the quality ofBruce Hill
as_lua_id() (guaranteed injectivity).
2018-08-29Handling more compatibility stuff, including Lua 5.4, and a backup forBruce Hill
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-29Tweaked version 3.6 to include deprecating list append/removal functionsBruce Hill
in favor of using a method call style.
2018-08-29Switched "as_lua_id" to not add an underscore by default, and just addBruce Hill
it manually to variables and A_ as a prefix to actions. Now, by default, classes and method calls don't use the A_ prefix, which means nomsu can more easily play nice with regular Lua objects.
2018-08-28Lots of overhaul, supporting a new Object Oriented approach (e.g.Bruce Hill
%obj::action 1 2) and syntax.
2018-08-27Bunch of miscellaneous changes. Paved the way a little bit for havingBruce Hill
different compiler domains.
2018-07-30Cleaning up clumping logic a little.Bruce Hill
2018-07-30Changed autoformatting rules to ensure tests get clumped together withBruce Hill
the thing below them.
2018-07-30Added bit library and support for checking Lua version and whetherBruce Hill
LuaJIT is being used.
2018-07-26Fixed a bug where if an indented string interpolation was at the end ofBruce Hill
an indented text, the nomsu codegen would fail to put a "\n.." after it, so it wouldn't parse as an iterpolation.
2018-07-26Recompiled.Bruce Hill
2018-07-24Updating file stuff for better compatibility with Lua 5.2 and fixingBruce Hill
some bugs. Also updated README to provide more compatibility info and list Lua5.2+ as a requirement.
2018-07-24Updated package.nomsupath behavior to first search the installedBruce Hill
locations, *then* search the current directory. This makes the system `nomsu` run properly, even if the local directory has a broken file that has the same name as a nomsu file.
2018-07-23Renamed nomsu_tree -> syntax_tree, so anyone looking for syntax treesBruce Hill
knows where to look.
2018-07-23Fixed blocks starting with extra newline when they start with a comment.Bruce Hill
2018-07-22Merging List/Dict codegen paths to reduce code duplication.Bruce Hill
2018-07-22Better handling of parsing non-filechunks text.Bruce Hill
2018-07-21Improvements working towards better inline tests. Improved handling ofBruce Hill
file spoofing and adding -e command line flag for executing a string.
2018-07-20Improving nomsu codegen.Bruce Hill