Closed deathbeam closed 8 years ago
Multiline calls fails
self class
def self.main()
def arr = Array<String>.new()
arr
.array()
.join("/")
end
transpile into
package examples;using Lambda; class HelloWorld {
static public function main(){
var arr =new Array<String>();
arr
.array();
.join("/");
};
}
This type of syntax will not be supported soon. There is no easy way to check if you are in multiline statement, if you start previous statement with a dot. But I plan to support this syntax
self class
def self.main()
def arr = Array<String>.new()
arr.
array().
join("/")
end
So character specifying that it is multiline statement is last token on previous line.
So, when using autocomplete, you can't play with multilines. A bit sad :(
Hmm now I get an idea. I can safely also get next token and check if it is "semicolon ignoring" one. So I can also support syntax like yours :D
Yep, it will fix also multiline arrays :+1:
It will not probably :D Anyway, added support for multiline expressions but with my style for now, yours (and most used one :/ ) is not working yet.
Added also support for yours syntax :D
I think I can close this now.
Wouhou ! I'll try later thank you :+1:
What needs to be done:
And some more things. This is last thing missing to atleast go to pre-alpha of Raxe. Semicolons..