Commit Graph

24 Commits

Author SHA1 Message Date
Bruce Hill
47db74229d Fixed some bugs in trailing_line_len() and refactored tree_to_nomsu into
separate inline/not-inline functions.
2018-07-19 20:42:09 -07:00
Bruce Hill
af441330ff Improving nomsu codegen. 2018-07-17 23:33:56 -07:00
Bruce Hill
77a338c167 Oops, didn't mean to check in smushed_action. 2018-07-17 17:25:28 -07:00
Bruce Hill
39a0121856 Improvements to nomsu codegen. 2018-07-17 15:01:04 -07:00
Bruce Hill
0442c8dd21 Overhaul of comment handling, plus a few fixes (e.g. a fix for indented
text that begins with a nomsu comment)
2018-07-17 14:12:51 -07:00
Bruce Hill
be06fc096a Major changes to how versioning and parsing work. This should be a
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-15 19:43:28 -07:00
Bruce Hill
d535dc5794 Fixed up comment generation to old standards 2018-07-14 14:41:32 -07:00
Bruce Hill
84c0058e69 Switching to use 'unpack' for indentation grouping. 2018-07-13 09:56:38 -07:00
Bruce Hill
0fd3d1f2b9 Fixing up comments, slowly. 2018-07-12 21:42:16 -07:00
Bruce Hill
af62e3e8bf All tests passing. 2018-07-12 21:24:13 -07:00
Bruce Hill
f908bb49b3 Initial version of new pegfile. works (ish) 2018-07-12 16:14:44 -07:00
Bruce Hill
de34592dbe Adding some compatibility stuff. 2018-07-09 19:22:46 -07:00
Bruce Hill
0923b0192c Improvements to nomsu codegen (comments are now retained) and some
improvements to handling of stdin and fixes for error reporting.
2018-06-28 14:13:01 -07:00
Bruce Hill
09d6bad6ac Minor fixes. 2018-06-27 10:23:02 -07:00
Bruce Hill
4fd6d817c8 Reducing imports. 2018-06-24 23:21:11 -07:00
Bruce Hill
2db2c68ac3 Cleaning up code and shuffling things around. 2018-06-24 23:18:42 -07:00
Bruce Hill
863983202c Fixed up nomsupath behavior and refactored file stuff into its own file. 2018-06-23 17:22:43 -07:00
Bruce Hill
dbf3de3d8e Added versioning system. 2018-06-23 00:57:39 -07:00
Bruce Hill
126678f737 Adding fancy makefile that compiles all the moonscript files and
precompiles all the nomsu files and can build a nice executable file and
install it wherever you like.
2018-06-22 02:41:08 -07:00
Bruce Hill
86a3219e7f Cleanup of some metaprogramming stuff, as well as adding support for
"package.nomsupath" to search for files in different locations, and
prioritizing use of "luafilesystem" over system calls.
2018-06-21 19:13:47 -07:00
Bruce Hill
7deed5af41 Fixing up some error reporting 2018-06-19 02:00:59 -07:00
Bruce Hill
d7d86e0268 Lots of cleanup. 2018-06-19 00:44:22 -07:00
Bruce Hill
f83cc3ad8a More streamlining and cleanup. 2018-06-18 18:11:09 -07:00
Bruce Hill
a22de3fdbb Moved parsing into a different file 2018-06-18 15:46:36 -07:00