Closed Peekmo closed 8 years ago
Wow, some files that I didn't touche has been change o.O Is it possible that the merge totally fucked ? I correct it
Edit : Done.
Hmm and do you tested to compile all examples and checked if output is correct?
But it is great addition, but what about multiline statements?
Yep, all output seems correct.
For multiline statements, question is opened. Perhaps just adding parenthesis when there's multiline ? Or like ruby, using a statement like "||" or "&&" at the end of the line (but I don't really like it) Or just, a "," after a line when there's multiline.
If any better idea, I'm open ;)
I added "," to manage multiline in conditions. You can find some example in examples/Conditions.rx
Awesome :) It still have some conflicts, so if you will fix them, I will merge this and so we can have more beautifull syntax :P
Done :)
And what will happen when I will write syntax like this?
if something && something.equals(5 +
6) || something.equals(6 -
8
It will fails, as in ruby. There's a syntax for multine and it must be respected.
It should be write like this
if something && something.equals(5 +,
6) || something.equals(6 -,
8
But that will compile to this:
if (something && something.equals(5 +,
6) || something.equals(6 -,
8) {
}
and that is not valid syntax. Anyway, I am going to merge it because I am going to write proper method to handle any multiline things.
No, I remove the ending "," of course.
Hello,
With this PR, you'll not have to set parenthesis around conditions (for, while, if, elsif)
Hope you'll like it.
Regards, Peekmo