moonscript/todo
2011-07-11 09:38:22 -07:00

65 lines
1.3 KiB
Plaintext

# TODO
posmap = {
[out_line] = file char
}
differentiate root block and normal block
- use `with` as an arugment to function (normal expression)
- varargs that get put in a nested generated function aren't valid anymor:
- variable declartion for classes is messed up (always local)
- class expressions, x = class extends Hello do new: => print "hello"
- add all lines through Block
- add_line should only add one line at a time
- add_block?
* issues with whitespace on the end of lines
* default arguments
* multiline comments
* table slices
* chains that don't end in funcall need tmp assignment
* add a proper return statement
* add continue keyword (ouch)
* vim syntax file
* combine for and if line decorators
* elseif with value that inserts lines
- need to decompose elif into if inside else
* export keyword, makes it so local is left off when variable is declared
- or copies to global var when local already exists
- or used for assignment to assign global var
export a = -> "hello"
or
x = 232
export x
or
export x
x = 3434
* these should work:
x = 5 + if something then 40 else 343
x =
hello: if something 343 else 343
* allow return anywhere in block
* upercase constants and capital letter variables should automatically be exported (in the global scope?)
* any/every keywords for comprehensions