Commit Graph

279 Commits

Author SHA1 Message Date
leaf corcoran
df7ca32a4c handing the transformation of decorator with implicit return in all cases 2012-10-27 15:51:34 -07:00
leaf corcoran
b404f2d7c8 fix implicit return with decorated statements 2012-10-27 12:39:44 -07:00
leaf corcoran
063b50a38f assignment declaration is pulled out of line decorators #44 2012-10-25 18:55:04 -07:00
leaf corcoran
e1f31d9e8d "declare" no longer shadows, introduce "declare_with_shadows" for local keyword 2012-10-25 18:22:51 -07:00
leaf corcoran
99e1c9d38b move line decorator transformation out of the parser 2012-10-25 17:57:21 -07:00
leaf corcoran
2134a3320a add unless block 2012-10-25 15:23:24 -07:00
leaf corcoran
14db695560 table comprehensions support single expression that returns a pair 2012-10-03 11:30:23 -07:00
leaf corcoran
867989b4f7 escape dot chains that are lua keywords 2012-10-01 15:12:01 -07:00
leaf corcoran
b7bf9b73d0 some docs about assigns in if/elseif 2012-10-01 12:37:47 -07:00
leaf corcoran
1e6b9c8cab allow assignment in elseif 2012-10-01 12:30:16 -07:00
leaf corcoran
1d6bf564af allow assignment in if condition 2012-10-01 09:19:19 -07:00
leaf corcoran
7f3f17a8e4 reorganize update and assign parsing 2012-09-30 19:30:36 -07:00
leaf corcoran
6c0ec441d5 don't let debug mode break parser 2012-09-30 19:25:20 -07:00
leaf corcoran
8cf92a3591 Allow real statements inside of class 2012-09-30 19:18:21 -07:00
leaf corcoran
5e7520e491 fix variable name bug and recompile 2012-09-30 18:28:44 -07:00
leaf corcoran
bd258bd79a woops, don't crash on empty string 2012-09-30 17:58:46 -07:00
leaf corcoran
d272f6a04c call methods on strings without parentheses 2012-09-30 17:43:50 -07:00
leaf corcoran
b66f07c524 grammar debugger 2012-09-30 13:41:11 -07:00
leaf corcoran
a3c82d95f8 bring back local keyword for forward declaration 2012-09-30 09:36:01 -07:00
leaf corcoran
050c77c52e fix bug in string interpolation and add more tests 2012-09-30 08:57:11 -07:00
leaf corcoran
8b2fa75e4c add string interpolation to double quote string 2012-09-27 18:13:03 -07:00
leaf corcoran
98ebb97b16 declare the variables introduced by for loop into scope #44 2012-09-18 16:04:22 -07:00
leaf corcoran
43c1e0a4fb allow string literal as table key 2012-09-08 18:40:15 -07:00
leaf corcoran
bc13b1b8cc add inherited callback to classes 2012-09-08 18:08:54 -07:00
leaf corcoran
1ac76d147a fix dead github buttons on docs 2012-09-08 17:54:18 -07:00
leaf corcoran
8940c6a837 some updates 2012-09-08 17:54:18 -07:00
Nils Nordman
3320932c71 Close files explicitly when done
Even though files are automatically closed, per the manual
it takes "an unpredictable amount of time to happen".
2012-09-08 17:22:43 -07:00
leaf corcoran
8c2be55dbb show error message from loadfile if there is one 2012-09-08 10:37:50 -07:00
leaf corcoran
7d2f57d9f2 check for non-existant file in bin/moon, write error to stderr 2012-09-08 10:34:14 -07:00
leaf corcoran
bdb69566f9 added a test script based on busted 2012-09-08 10:24:46 -07:00
leaf corcoran
340498d5d1 use xpcall instead of coroutine when running code through bin/moon
moon will longer swallow errors if you tried to yield from the top scope
2012-09-07 22:31:11 -07:00
leaf corcoran
a750523d10 hoist name declarations from statements inside of a class to the top of the class body 2012-09-07 20:20:34 -07:00
leaf corcoran
290b73f92b differentiate between table key literals and variable references #42 2012-09-07 18:51:19 -07:00
leaf corcoran
b170172465 wrap update expressions in parentheses if passed an expression #43 2012-09-07 16:41:19 -07:00
leaf corcoran
d3170a018d support full syntax of generic for loop #41 2012-08-12 00:58:35 -07:00
leaf corcoran
97d8bc2e66 tweak inotify 2012-02-29 19:32:10 -08:00
leaf corcoran
9d11356d7e added a way to compile from stdin 2012-01-22 11:53:13 -08:00
leaf corcoran
82fdda1e0a cleaned up some docs 2012-01-22 11:52:46 -08:00
leaf corcoran
c93e2d35f5 fixed regression, assign allowed in class decl again 2012-01-22 11:50:30 -08:00
leaf corcoran
b4d6f59d04 handle an ambiguity case for generated code 2012-01-14 03:05:42 -08:00
leaf corcoran
260b17a878 can specify scope to tree compile 2012-01-14 01:38:30 -08:00
leaf corcoran
16f4c956bf unless line decorator 2012-01-13 21:48:07 -08:00
leaf corcoran
bf416dbb1c remove empty return statement at end of fndef (#20) 2012-01-13 21:24:46 -08:00
leaf corcoran
2ea42c3387 fixed whitespace/comment issue after statements 2012-01-13 18:33:24 -08:00
leaf corcoran
1ef297349a updated test 2012-01-11 20:39:09 -08:00
leaf corcoran
d7f8ade88e standalone @ and @@ are aliases for self and self.__class 2012-01-10 22:14:14 -08:00
leaf corcoran
3a2b92e5d3 don't treat assignment/update as expression (#26) 2012-01-10 21:41:01 -08:00
leaf corcoran
1bedf81ca8 fixed typo in docs 2012-01-08 23:35:43 -08:00
leaf corcoran
9d8690f58b updated version number for dev 2012-01-08 23:32:06 -08:00
leaf corcoran
4a1c9e5548 updated docs on class objects and class variables 2012-01-08 23:16:32 -08:00