aboutsummaryrefslogtreecommitdiff
path: root/nomsu.lua
AgeCommit message (Collapse)Author
2018-01-10Pretty much mostly working.Bruce Hill
2018-01-10Performance optimizations and correctness fix for [=[...]=]-styleBruce Hill
strings. Also, require % now properly inserts lua code.
2018-01-10Switched back to using precompiled lua files instead of lua> "..",Bruce Hill
because it's noticeably faster.
2018-01-09Propagating filenameBruce Hill
2018-01-09Cleaned up metaprogramming to go "compile to" -> "rule =" -> "parse as".Bruce Hill
This speeds things up a bit, and is more intuitive.
2018-01-08Modernized the codebase a bit to include "immediately:" for immediatelyBruce Hill
running code before further parsing takes place. That means that in the default case, whole files can be run at once, which makes all but the weirdest edge cases make a lot more sense and operate smoothly.
2018-01-07Reworking some stuff so that functions only allow expressions to beBruce Hill
return values with either an explicit "return" statement or if they're the only line in the function, and the line is an expression.
2018-01-07Some overhaul of binary operators so that arbitrary math patterns workBruce Hill
fine.
2018-01-05Added nomsu:assert()Bruce Hill
2018-01-05Low hanging optimization fruit.Bruce Hill
2018-01-03Updated examples and made operator characters not stick to each other.Bruce Hill
Useful for <%x>=6 properly registering as <%x> = 6.
2018-01-03Added support for \000 and \x00 style byte literals.Bruce Hill
2018-01-03Reworked {} a bit and added dicts to the core language. Did some moreBruce Hill
testing on string interpolations too.
2017-12-30Got everything mostly working.Bruce Hill
2017-12-18renamed utils2 -> utilsBruce Hill
2017-12-18Recompiled.Bruce Hill
2017-12-15Tweaks.Bruce Hill
2017-12-14Switched compiler to do lua> instead of lua files.Bruce Hill
2017-12-14Minor fix.Bruce Hill
2017-12-14Rebuild.Bruce Hill
2017-12-13Got it working.Bruce Hill
2017-12-11More updates with more functional macros and source code storage.Bruce Hill
2017-12-09Recompiled.Bruce Hill
2017-12-09Pretty much everything is working??Bruce Hill
2017-12-08Simplified parser by removing prev_edge.Bruce Hill
2017-12-08Added unicode support and cleaned up the parser a bit.Bruce Hill
2017-12-04Some stuff changed to allow escaped args and some other ports from theBruce Hill
two_defs branch.
2017-11-01Added empty string check.Bruce Hill
2017-11-01Fixed some codegen stuff, optimized "say" for the common case of stringBruce Hill
literals.
2017-10-31Added local var persistence for REPL.Bruce Hill
2017-10-31Added support for serializing rules.Bruce Hill
2017-10-30Changed it so variables can't contain wordbreakers anymore.Bruce Hill
2017-10-22Added tree_to_nomsu() and improved codegen by compiling \foo toBruce Hill
nomsu:parse("foo") and removing some newlines.
2017-10-20Made it so nomsu only runs REPL with -iBruce Hill
2017-10-20More callstack fixinBruce Hill
2017-10-20Fix for callstack.Bruce Hill
2017-10-19Recompile.Bruce Hill
2017-10-19Recompile.Bruce Hill
2017-10-13Rebuilt.Bruce Hill
2017-10-13Changed tokenizing to treat symbols as their own things.Bruce Hill
2017-10-13Improved code generation by changing vars["x"] to vars.x for allowed luaBruce Hill
var names.
2017-10-13Rebuilt.Bruce Hill
2017-10-13Renamed repr_if_not_string to "stringify" and added nomsu:stringify forBruce Hill
convenience.
2017-10-13Changed generated code to be less verbose for function and macro defsBruce Hill
(using "foo %" syntax instead of {type="FunctionCall", ...} literals).
2017-10-13Tweaked macros to insert runtime checks, rather than compile-time.Bruce Hill
2017-10-12Added better output control for stderr.Bruce Hill
2017-10-10Added an option to pass in vars to run()Bruce Hill
2017-10-09Test fix.Bruce Hill
2017-10-09Moved timeout code into compiler and out of a lib.Bruce Hill
2017-10-09Added chain for loaded files.Bruce Hill