aboutsummaryrefslogtreecommitdiff
path: root/core/control_flow.nom
AgeCommit message (Collapse)Author
2018-09-16Much better error reporting for compile errors (i.e. not parse errors),Bruce Hill
using the pretty_error system.
2018-09-14Auto-upgraded everything.Bruce Hill
2018-09-10Upgraded to 3.8 (text method changes) and fixed some bugs inBruce Hill
tree_to_nomsu.
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-30Auto-upgraded to 3.7Bruce Hill
2018-08-29Tweaked version 3.6 to include deprecating list append/removal functionsBruce Hill
in favor of using a method call style.
2018-08-29Fully updated to 3.6, deprecated old LuaCode global functions like "to 1Bruce Hill
write 2" and replaced them with method calls like "1::append 2"
2018-08-28Upgraded version to 3.5.5.6, corresponding to Object Oriented changes.Bruce Hill
2018-08-27Bunch of miscellaneous changes. Paved the way a little bit for havingBruce Hill
different compiler domains.
2018-07-30Added compatibility for 2.5.5.5 (file hash changes).Bruce Hill
2018-07-30Changed autoformatting rules to ensure tests get clumped together withBruce Hill
the thing below them.
2018-07-25Updated version numbers.Bruce Hill
2018-07-24Added parens around lambdas (% -> %), and removed them from 'result %'Bruce Hill
correspondingly.
2018-07-23Fixed blocks starting with extra newline when they start with a comment.Bruce Hill
2018-07-22Re-autoformatted everything. The main changes are: no longer adding aBruce Hill
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-22Shifting further towards having inline tests. Also added a helperBruce Hill
function for directly extracting source lines from a Source or AST.
2018-07-20Auto-formatted and auto-upgraded everything!Bruce Hill
2018-07-18Updating to version 2.4.4.3, with new syntax for multi-statement 'if'Bruce Hill
and switch statements.
2018-07-18Upgrading to version 2.3 (main change: "=" instead of "<-" forBruce Hill
assignment)
2018-07-17Upgraded core code to latest Nomsu verison.Bruce Hill
2018-07-15Major changes to how versioning and parsing work. This should be aBruce Hill
better path going forward to handling upgrades. Old syntax files will stick around for compatibility purposes. Old syntax can be parsed into valid syntax trees via the old syntax (.peg) files, and then old syntax trees should be valid and can be upgraded via the normal code path. This change has lots of improvements to Nomsu codegen too.
2018-07-12Fixed accidental change.Bruce Hill
2018-07-12All tests passing.Bruce Hill
2018-07-11Fixed nomsu codegen for indented text and improved text parsing. AlsoBruce Hill
moved some more tests inline.
2018-06-26Cleaning up metaprogramming a bit and fixing/adding test for recursionBruce Hill
control flow.
2018-06-21Cleanup of some metaprogramming stuff, as well as adding support forBruce Hill
"package.nomsupath" to search for files in different locations, and prioritizing use of "luafilesystem" over system calls.
2018-06-20Cleanups.Bruce Hill
2018-06-18Minor cleanupsBruce Hill
2018-06-18More streamlining and cleanup.Bruce Hill
2018-06-18Initial working version.Bruce Hill
2018-06-14Some cleanup and fixes. Simplifying a lot of code, and extending theBruce Hill
flexibility of scoping. Redesigned Object system too.
2018-06-14Reshuffling some files.Bruce Hill
2018-06-14More streamlining and cleanup. Especially for core/metaprogramming.nomBruce Hill
2018-06-12Lots of optimizations and simplifications, especially towards gettingBruce Hill
better performance on luajit.
2018-06-12Tidying up exceptions and error reporting. Also simplified the grammar aBruce Hill
tiny bit.
2018-06-04Switched from Node(Tuple(values...), source) to Node(source, values...),Bruce Hill
thanks to support from immutable-tables for mixed tables.
2018-06-04Cleanups to try/catch logic and object logic.Bruce Hill
2018-05-30Simplified and correctified lib/object (though the codegen still needBruce Hill
streamlining), added a .stub member to Action trees, and switched Source's repr to be @filename[start:stop] instead of "filename[start:stop]"
2018-05-30Added 'for (%k,%v) in ...' alias for 'for %k = %v in ...'Bruce Hill
2018-05-26Re-added sources.Bruce Hill
2018-05-24Removed the Word tree type and replaced it with raw strings, sinceBruce Hill
they're only used as part of Actions
2018-05-24Misc changes, fixed up Object lib and tests.Bruce Hill
2018-05-16Initial working version.Bruce Hill
2018-05-15Removed "for all"-style iteration and changed "for % from 1 to 10"-styleBruce Hill
to "for % in 1 to 10" for consistency.
2018-05-15Cleaning up comments.Bruce Hill
2018-05-15Adding support for coroutines, and cleaning up comment syntax.Bruce Hill
2018-05-10Cleanup: removed "File" type trees (now just Block), overhauledBruce Hill
how_do_i.nom, added "result of %" macro, which allowed comprehensions to be way more concisely defined. Moved len() operator into the nomsu environment.
2018-04-28Fixed compile_lib and cleaned up control_flowBruce Hill
2018-04-25Overhauling parsing of Blocks (can no longer contain only one statement)Bruce Hill
2018-04-25Removing end-of-line ":" and "(..)" for blocks (they just useBruce Hill
indentation now).