Commit Graph

206 Commits

Author SHA1 Message Date
Bruce Hill
e476bfea52 Improved code generation for "when" statements using elseif, and
improved code generation for loops by omitting goto labels when not used.
2017-10-13 18:09:04 -07:00
Bruce Hill
d13bcde2b9 Renamed repr_if_not_string to "stringify" and added nomsu:stringify for
convenience.
2017-10-13 16:16:07 -07:00
Bruce Hill
7435b61380 Changed generated code to be less verbose for function and macro defs
(using "foo %" syntax instead of {type="FunctionCall", ...} literals).
2017-10-13 16:10:47 -07:00
Bruce Hill
1083273b9f Added -f option to force rebuilds (for when the compiler changes, not
the lib files).
2017-10-13 16:10:23 -07:00
Bruce Hill
1822df2b1a Added *much* better filename and line number error reporting. 2017-10-13 15:42:10 -07:00
Bruce Hill
06d05ebeee Tweaked macros to insert runtime checks, rather than compile-time. 2017-10-13 14:15:02 -07:00
Bruce Hill
c189be29bc Added better output control for stderr. 2017-10-12 14:39:49 -07:00
Bruce Hill
454bb76e2f Added chain and "with". 2017-10-12 14:39:03 -07:00
Bruce Hill
4e5445e6bc Added table.remove to collections. 2017-10-11 20:32:31 -07:00
Bruce Hill
d0b0cfcf39 Added an option to pass in vars to run() 2017-10-10 00:52:07 -07:00
Bruce Hill
a858775a68 Fixing up sorting more. 2017-10-09 20:17:38 -07:00
Bruce Hill
f553bf2948 Fixing sort. 2017-10-09 20:05:58 -07:00
Bruce Hill
782383975c Added type of alias. 2017-10-09 19:52:46 -07:00
Bruce Hill
88add732c7 Added type function. 2017-10-09 19:51:55 -07:00
Bruce Hill
7f4638ab5f Formatting. 2017-10-09 05:24:17 -07:00
Bruce Hill
b4256e9bec Formatting. 2017-10-09 05:23:21 -07:00
Bruce Hill
ebda0e017e Updating readme again. 2017-10-09 05:19:04 -07:00
Bruce Hill
fcb0afc572 Updating readme. 2017-10-09 05:12:18 -07:00
Bruce Hill
2f1c0284fe Test fix. 2017-10-09 04:37:16 -07:00
Bruce Hill
286b421f0e Updated readme. 2017-10-09 04:32:04 -07:00
Bruce Hill
9e1aaf2d5c Moved timeout code into compiler and out of a lib. 2017-10-09 04:31:41 -07:00
Bruce Hill
e737333d27 Added license. 2017-10-09 04:09:06 -07:00
Bruce Hill
ca130f36a5 Added chain for loaded files. 2017-10-09 03:51:53 -07:00
Bruce Hill
e8c820b8f5 Moved colors to only when invoking from command line. 2017-10-08 20:41:05 -07:00
Bruce Hill
87e4777aee Added random seed. 2017-10-08 18:29:59 -07:00
Bruce Hill
5b28823d6b Fixed command line for no args. 2017-10-08 18:25:50 -07:00
Bruce Hill
7c231bf435 Updated command line interface and compilation. 2017-10-08 18:23:48 -07:00
Bruce Hill
529afd465f Fixed permissions to work better with aliases. 2017-10-08 15:06:05 -07:00
Bruce Hill
6a429d7955 Added "unless" to core. 2017-10-07 16:38:13 -07:00
Bruce Hill
b7973b0afa Renamed ansicolors to consolecolors. 2017-10-07 16:25:17 -07:00
Bruce Hill
88077bcac3 Renamed ansicolors to avoid namespace collision. 2017-10-07 16:23:21 -07:00
Bruce Hill
e9cb758efd Added note about checking compiler. 2017-10-05 15:26:22 -07:00
Bruce Hill
b11d0752db Added ternary unless. 2017-10-05 15:20:20 -07:00
Bruce Hill
4ae64ef9e3 Fixed ternary operator. 2017-10-05 15:00:01 -07:00
Bruce Hill
7f9a08f3d6 Updated. 2017-10-04 19:40:44 -07:00
Bruce Hill
8d95dc74a7 Added timeout by instruction count. 2017-10-04 19:37:41 -07:00
Bruce Hill
976fb55c45 Removed printing from permissions. 2017-10-04 19:12:47 -07:00
Bruce Hill
ba078a11b9 Added how do I. 2017-10-04 18:04:33 -07:00
Bruce Hill
9251b462da Fixed one compiler bug with comments immediately after indenting 2017-10-02 20:17:52 -07:00
Bruce Hill
e3200dece1 Updating comments. 2017-10-02 19:35:01 -07:00
Bruce Hill
d477865b92 Added ansi colors to repo. 2017-10-02 19:31:22 -07:00
Bruce Hill
2856a76a8d Playing with formatting. 2017-10-02 19:28:42 -07:00
Bruce Hill
d52044e913 Removed tutorial (redundant with examples/how_do_i.nom) 2017-10-02 19:24:47 -07:00
Bruce Hill
9f4aa6a2e0 Added some ansi color escapes. 2017-10-02 19:23:56 -07:00
Bruce Hill
63ed265157 More progress towards making everything work. 2017-10-02 19:00:58 -07:00
Bruce Hill
dcd3391b36 Updated to undo some of the block/thunk stuff. Thunks are thunks, and
expressions can be grouped with parens, and they have a clear
distinction.
2017-10-02 17:21:22 -07:00
Bruce Hill
e2bbbfe161 More stuff is working more better. 2017-09-29 22:04:03 -07:00
Bruce Hill
723a4c3871 Fixed some of secrets' functionality by rewriting rule % = % 2017-09-28 18:25:50 -07:00
Bruce Hill
ac25e20b9f Kinda mostly working, except for closure vars like in lib/secrets.nom. 2017-09-28 17:49:15 -07:00
Bruce Hill
10d61df78b Making forward progress. 2017-09-26 15:27:01 -07:00