Bruce Hill
9d6627aee5
Hopefully last correctness fix for trailing_line_len(), now it's just
...
dumb and slow, but correct. Also simplified recursion options a bit for
tree_to_nomsu()
2018-07-19 21:10:19 -07:00
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
0eff1c77f2
chmod +x for all tools.
2018-07-19 17:10:58 -07:00
Bruce Hill
e5e47cb9ee
*actual* fix for the codegen for (do: if (yes) (: say "hi"); say "done")
...
example
2018-07-19 17:01:11 -07:00
Bruce Hill
ddc7b8e70c
Fix for nomsu codegen of blocks, particularly nested mutli-blocks like:
...
(do: if (yes) (: say "hi"); say "done")
2018-07-19 16:58:47 -07:00
Bruce Hill
bf67a61013
Updating to version 2.4.4.3, with new syntax for multi-statement 'if'
...
and switch statements.
2018-07-18 17:56:15 -07:00
Bruce Hill
acb86f78c3
Genericizing.
2018-07-18 14:54:48 -07:00
Bruce Hill
328f5cd3bb
Updated Makefile to copy over compatibility and tools directories, and
...
updated launcher script to list installed nomsu versions.
2018-07-18 01:42:46 -07:00
Bruce Hill
d5cfaa37be
Upgrading to version 2.3 (main change: "=" instead of "<-" for
...
assignment)
2018-07-18 01:28:17 -07:00
Bruce Hill
c7c657d38f
Prep work for next big upgrade, including adding a shorthand for
...
upgrading actions similarly to 'parse % as %'
2018-07-18 01:04:57 -07:00
Bruce Hill
88df5c72a3
Updating lib to v2
2018-07-17 23:37:26 -07:00
Bruce Hill
af441330ff
Improving nomsu codegen.
2018-07-17 23:33:56 -07:00
Bruce Hill
ceb29321ed
Added shebang.
2018-07-17 23:08:48 -07:00
Bruce Hill
ba639f2bd0
Upgraded core code to latest Nomsu verison.
2018-07-17 23:08:24 -07:00
Bruce Hill
854b2a652f
Fixed a bug in text escapes in nomsu codegen.
2018-07-17 17:53:17 -07:00
Bruce Hill
77a338c167
Oops, didn't mean to check in smushed_action.
2018-07-17 17:25:28 -07:00
Bruce Hill
6afa71d678
Removing minor change.
2018-07-17 16:15:50 -07:00
Bruce Hill
cbd1437752
Optimization/simplification pass.
2018-07-17 16:13:55 -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
8a44869c4a
Aesthetic tweak to generated nomsu code with colons.
2018-07-14 15:06:17 -07:00
Bruce Hill
c9ff0ff04b
Fixed up some edge cases with parsing and comments.
2018-07-14 14:53:03 -07:00
Bruce Hill
d535dc5794
Fixed up comment generation to old standards
2018-07-14 14:41:32 -07:00
Bruce Hill
01a4f36398
Minor changes.
2018-07-13 14:30:39 -07:00
Bruce Hill
84c0058e69
Switching to use 'unpack' for indentation grouping.
2018-07-13 09:56:38 -07:00
Bruce Hill
295a25a3ed
Fixed accidental change.
2018-07-12 21:43:12 -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
ba2b83d566
Fixed nomsu codegen for indented text and improved text parsing. Also
...
moved some more tests inline.
2018-07-11 14:14:16 -07:00
Bruce Hill
b32634faf8
Fixed dumb bug that broke the tests.
2018-07-10 17:37:00 -07:00
Bruce Hill
194146d365
Improving codegen line wrapping.
2018-07-10 17:34:50 -07:00
Bruce Hill
26a6174f28
Fixed dumb bug.
2018-07-10 17:13:53 -07:00
Bruce Hill
3fd5687370
Fixed up line numbers for generated code.
2018-07-10 17:10:59 -07:00
Bruce Hill
77a551099a
Updated doc for debugger.
2018-07-10 15:06:08 -07:00
Bruce Hill
fa72d7eeb1
Fixing up error reporting and ripping out LDT-specific code (now a
...
debugger can
be provided by a command line flag)
2018-07-10 15:00:35 -07:00
Bruce Hill
de34592dbe
Adding some compatibility stuff.
2018-07-09 19:22:46 -07:00
Bruce Hill
0d70332ccf
Updated readme.
2018-07-09 17:27:22 -07:00
Bruce Hill
85ef9534e3
Added pattern matching for text, and comprehension versions of that and
...
file walking.
2018-07-09 17:14:05 -07:00
Bruce Hill
cb1c3106f8
Made command line args into a proper Nomsu list.
2018-07-09 17:00:57 -07:00
Bruce Hill
11e9e36636
Simplified the command line interface.
2018-07-09 16:59:20 -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
65dc1f2196
Cleaning up metaprogramming a bit and fixing/adding test for recursion
...
control flow.
2018-06-26 15:53:00 -07:00
Bruce Hill
42578872c7
Added explicit return statements.
2018-06-25 12:23:53 -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
b09db8f7df
Cleaning up non LFS codepath for files and README
2018-06-24 18:39:34 -07:00
Bruce Hill
e5d63ad945
Added UNINSTALL_VERSION parameter to makefile so users can specify a
...
particular version to uninstall (or use "*" to uninstall all).
2018-06-24 18:28:52 -07:00