Commit Graph

140 Commits

Author SHA1 Message Date
leaf corcoran
e075c2f971 local * doesn't grab names in nested scopes 2013-01-13 12:23:49 -08:00
leaf corcoran
cad4aea610 put exported declared names so they can be assigned in deeper scopes 2013-01-13 12:11:47 -08:00
leaf corcoran
d772547d59 update export tests 2013-01-13 11:50:26 -08:00
leaf corcoran
0cf96b97f6 add numeric for loop comprehensions/decorator, fixes #45 2013-01-12 15:14:33 -08:00
leaf corcoran
d2444409fe remove filtering of nil values from loop expressions (use continue instead) #66 2013-01-12 14:11:15 -08:00
leaf corcoran
7cd0fcc632 update accumulator after expression 2013-01-12 13:01:34 -08:00
leaf corcoran
0759cd640e local glob tests and local ^ 2013-01-12 10:33:12 -08:00
leaf corcoran
181e06d9ae destructure works with if assignment cond 2012-11-29 09:48:08 -08:00
leaf corcoran
5162082085 allow multiple cases per when statement in switch
also fix precedence issue when using lower than == precedence operators
in when
2012-11-29 09:19:35 -08:00
leaf corcoran
25b997e71f allow destructure in for in names 2012-11-29 00:37:49 -08:00
leaf corcoran
89f4a83f26 add destructuring assignment 2012-11-27 23:46:32 -08:00
leaf corcoran
3adaed672e make mtype not error when passed smart node fix #52
fixes error when returning if/elseif assignment block
2012-11-27 18:35:34 -08:00
leaf corcoran
48662adc3b let class be the key in an unbound table 2012-11-10 22:15:54 -08:00
leaf corcoran
7752760160 @@variables should be assignable 2012-11-02 09:12:05 -07:00
leaf corcoran
f98f822891 extract class name from assign statement if anonymous class is being assigned 2012-11-01 09:19:04 -07:00
leaf corcoran
97394fbbc9 classes can be expressions, classes don't require name or body anymore 2012-11-01 08:56:54 -07:00
leaf corcoran
bcb4327fd8 remove concept of non atomic value 2012-11-01 08:03:27 -07:00
leaf corcoran
481e0f6c66 add or= an and= operators 2012-11-01 08:00:21 -07:00
leaf corcoran
1313013433 with can take an assignment statement #46 2012-11-01 07:27:52 -07:00
leaf corcoran
0d1f25c2de tests for do 2012-10-31 20:15:44 -07:00
leaf corcoran
abc2599d15 fix export ^ with class declarations inside of do 2012-10-31 13:44:56 -07:00
leaf corcoran
021d4878a0 class name can be any assignable expression #46 2012-10-31 00:07:59 -07:00
leaf corcoran
b6987fe6d8 wrap class declaration in do instead of anonymous function 2012-10-30 23:34:42 -07:00
leaf corcoran
f8925a46a6 classes can implicitly return #46 2012-10-30 09:44:02 -07:00
leaf corcoran
1be72f57b7 add implicit return to end of files #46 2012-10-30 09:38:47 -07:00
leaf corcoran
c4c3843537 don't crash when non-value is at end of loop expression 2012-10-30 09:11:06 -07:00
leaf corcoran
a6c920641e tests for new continue keyword 2012-10-28 02:05:12 -07:00
leaf corcoran
625a2402b0 redo varargs bubbling with send, fix some varargs issues 2012-10-28 01:50:22 -07:00
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
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
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
8cf92a3591 Allow real statements inside of class 2012-09-30 19:18:21 -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
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
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