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
leaf corcoran
5933b733ba
assigning class variables with @ property names
2012-01-08 23:10:25 -08:00
leaf corcoran
cd240444de
updated test
2012-01-08 22:24:58 -08:00
leaf corcoran
3fc11c813e
@@ syntax for class variables within instances
2012-01-08 22:02:43 -08:00
leaf corcoran
ad999af9ba
fixed typo in docs
2011-12-27 11:35:16 -08:00
leaf corcoran
f0deac7de1
oops, renabled inotify
...
was disabled for testing
2011-12-12 23:28:49 -08:00
leaf corcoran
d90bd71013
updated doc html
2011-12-12 00:49:06 -08:00
leaf corcoran
2fc2a1e1b5
splat.moon: specify the modules to autoload with -l
2011-12-11 17:21:53 -08:00
leaf corcoran
0f44808158
splat.moon can do multiple directories
2011-12-11 17:12:17 -08:00
leaf corcoran
4c4f6de43e
added splat.moon
2011-12-11 16:57:07 -08:00
leaf corcoran
07fb8dc28e
bump version number
2011-12-10 23:56:24 -08:00
leaf corcoran
f280eff15c
clean up docs for sitegen
2011-12-10 23:50:50 -08:00
leaf corcoran
eacc6d86ad
fix format error
2011-12-10 22:19:12 -08:00
leaf corcoran
b833282e89
fixed some broken syntax in docs
2011-12-10 22:09:36 -08:00
leaf corcoran
4b56fb2c37
delimited snippets
2011-12-10 22:00:38 -08:00
leaf corcoran
f45a2aa60b
more std lib docs
2011-12-10 14:57:11 -08:00
leaf corcoran
d50ff29396
scintillua directions
2011-12-10 13:53:22 -08:00
leaf corcoran
53f587021d
support for indented unbound tables as last argument to function calls
2011-12-08 22:44:07 -08:00
leaf corcoran
e79711423c
is_object and type stdlib functions
2011-12-04 11:16:06 -08:00
leaf corcoran
0ac471c2c4
rebuilt
2011-12-03 19:41:20 -08:00
leaf corcoran
d1059b8f98
class level inheritance, changed class representation slightly
...
Looking up a class property will now search the parent class properties
if parent exists
Classes have a few more built in properties:
* __name holds the name of the class as it was defined as a string
* __base holds the instance metatable as it was defined (not dynamic)
* __parent holds the class's parent class if it exists (not dynamic)
The way class inheritance is handled was CHANGED (uses __base instead of
looking at __index of parents metatable). Make sure you recompile all
your code if using class inheritance because old classes won't work with
new ones.
2011-12-03 19:17:06 -08:00
leaf corcoran
e55fa25e6e
class inner expressions run in class scope
2011-12-03 15:45:04 -08:00
leaf corcoran
255a92f8ee
expressions inside of class body is parsed
2011-12-03 14:07:05 -08:00
leaf corcoran
7ff11584f5
moon.debug falls back on lua debug
2011-12-03 14:05:02 -08:00
leaf corcoran
30d1db85c8
start of stdlib docs
2011-12-03 11:56:15 -08:00
leaf corcoran
676e89454d
mentioned function stubs and super
2011-12-03 11:07:24 -08:00
leaf corcoran
3e9c5669a3
enhanced documentation about super
2011-12-03 11:02:06 -08:00
leaf corcoran
0d232f98e7
super tests, fixed regression when compiling chain dot args
2011-12-03 10:44:41 -08:00
leaf corcoran
5c999fb680
colon_stub
on super will pass self as receiver
2011-12-03 10:39:03 -08:00
leaf corcoran
cd5087b08b
don't error on value named super outside class
2011-12-02 20:42:46 -08:00
leaf corcoran
fc72baf423
calling function of super with \ uses self instead of class as first arg
2011-12-02 20:37:47 -08:00