Commit Graph

33 Commits

Author SHA1 Message Date
leaf corcoran
53f587021d support for indented unbound tables as last argument to function calls 2011-12-08 22:44:07 -08:00
leaf corcoran
d43f0f5a9c moved unpack foreach to transform, removed do end from output 2011-10-10 00:24:16 -07:00
leaf corcoran
319d387c72 fixed parse error with some keywords at start of variable names 2011-09-30 20:20:36 -07:00
leaf corcoran
20548ecd70 ..= for string concatenation update 2011-08-20 10:44:08 -07:00
leaf corcoran
faf21dd805 keep track of accumulator size instead of using length operator
should be faster
2011-08-13 19:19:17 -07:00
leaf corcoran
a76c251899 don't use table.insert to append to table 2011-08-13 11:20:10 -07:00
leaf corcoran
05b3a8f989 fixed number literals (all lua ones supported)
integer, float and hex
2011-08-12 19:35:22 -07:00
leaf corcoran
472c107786 fixed parse error for empty lines before else/elseif 2011-07-22 19:21:12 -07:00
leaf corcoran
1ea8f3fb6f for loops and while statements as expressions 2011-07-16 17:14:57 -07:00
leaf corcoran
9c000857fc proper return statement + with expression 2011-07-16 13:19:41 -07:00
leaf corcoran
4e9227417d default function args 2011-07-16 11:00:39 -07:00
leaf corcoran
ba29e159b5 tests pass, fixed some bug 2011-07-14 00:02:07 -07:00
leaf corcoran
96abc5986e bang function call 2011-06-20 20:35:05 -07:00
leaf corcoran
17184f2aa8 unary minus must not have any whitespace after it
avoids precedence ambiguity between minus with fncall
2011-06-20 08:28:25 -07:00
leaf corcoran
2fb3b4f9d2 table keys can be reserved words 2011-06-19 13:00:27 -07:00
leaf corcoran
64312e48cf rebuilt syntax test 2011-06-13 08:44:17 -07:00
leaf corcoran
133c9b058d binary assignment operator shorthand + misc 2011-06-13 08:23:09 -07:00
leaf corcoran
f5c5e9fde3 fully moonspeak compiler 2011-06-12 22:38:42 -07:00
leaf corcoran
b9e8b3014d local declared before fndef to allow recursion 2011-06-02 20:55:33 -07:00
leaf corcoran
5e99633efc added support for colon open function calls 2011-06-01 23:27:19 -07:00
leaf corcoran
72eca8071c chains can implicitly return 2011-06-01 21:11:03 -07:00
leaf corcoran
233738aad2 assignable if, exp list as statement, ; as value separator 2011-05-29 22:38:47 -07:00
leaf corcoran
2e8c33ad23 new assign compile 2011-05-29 16:25:52 -07:00
leaf corcoran
d8ff74ccba comprehension decorator, non return value compile for comprehension 2011-05-29 14:47:42 -07:00
leaf corcoran
ee63375705 compile funcs use pretty to output when possible 2011-05-28 18:36:19 -07:00
leaf corcoran
75b834bbe5 implicity return for some types, temp storage for unary expressions 2011-05-28 16:45:59 -07:00
leaf corcoran
0babe3ad55 if statement decorator, unary ops, ... keyword 2011-05-28 00:21:25 -07:00
leaf corcoran
ba0c504fa4 colon and dot operators 2011-05-23 23:58:10 -07:00
leaf corcoran
66b20ef1ce some table syntax, fixed tests 2011-05-22 19:47:25 -07:00
leaf corcoran
5c2f5b0e0d amgibuity fix, parens, and some comment support 2011-05-22 12:19:13 -07:00
leaf corcoran
6e0927f55d strings 2011-05-22 00:58:17 -07:00
leaf corcoran
4d489581ba assignment and scoping functional 2011-05-21 22:15:19 -07:00
leaf corcoran
4936446f1c funcall and indexing is good 2011-05-21 15:26:46 -07:00