Commit Graph

19 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
02def0af92 lib/metaprogramming.nom is working! 2017-09-25 17:02:00 -07:00
Bruce Hill
af3274ca92 massive overhaul, compiler kinda works. 2017-09-24 20:20:27 -07:00
Bruce Hill
26d72ce56e Overhaul of invocations/specs. Much cleaner and more consistent now,
with less code duplication.
2017-09-21 21:11:13 -07:00
Bruce Hill
3715481506 Another overhaul, this time pulling all the chunks of the core lib into
their own files.
2017-09-21 00:10:26 -07:00
Bruce Hill
e073b23fbf Added and fixed up "when" 2017-09-20 04:21:46 -07:00
Bruce Hill
a045b76ad2 Fixed repr to use __tostring metamethod if present. 2017-09-18 17:09:03 -07:00
Bruce Hill
13490a34c8 Made repr fix more flexible/correct. 2017-09-14 19:45:36 -07:00
Bruce Hill
ed0b5a3373 Fixed a bug in repr for strings ending in "]", and added moonscript
macros.
2017-09-14 19:39:27 -07:00
Bruce Hill
c0efa6c7d1 Tweaks and fixes. 2017-09-12 17:42:35 -07:00
Bruce Hill
6e236fa095 Tweaks and fixes. 2017-09-12 15:28:58 -07:00
Bruce Hill
c26db225f3 working towards moving more code into nomic. 2017-09-11 19:23:55 -07:00
Bruce Hill
5fef795cda probably working after refactor? 2017-09-11 13:05:25 -07:00
Bruce Hill
2e9a3cdf00 Added longstrings and removed indentification step. 2017-09-05 21:20:11 -07:00
Bruce Hill
0e916161b1 Updated core with new syntax. 2017-08-22 01:02:41 -07:00
Bruce Hill
4713d7db0d Totally working everything (probably) with if and for macros. 2017-08-22 00:41:25 -07:00
Bruce Hill
19c42887bc In-progress working whitespace stuff. 2017-08-20 01:30:04 -07:00
Bruce Hill
dc152f88b6 Cleanup and utils file. 2017-08-18 21:08:28 -07:00