Closed Peekmo closed 8 years ago
Major changes
Note before : I took decisions to write this code, you could like it, or not. If you don't, close it and that's all ^^
The "Conditions.rx" is the most complete example for all the changes added in this PR :
class self < String :: TestInterface def self.main() def myvar : String = null def myarray = Array<String>.new() if myvar != null && myvar.charAt(10) == "p": for i in myarray.iterator(): trace("Wouhou") end elsif myvar != null && myvar.charAt(20) == "c": trace("no") else trace("coco") end if myvar == null && myvar.charAt(0) == "x" && myvar.charAt(2) == "x": trace("ok") end end
What's new ?
:
self class
class self
<
::
class MyClass
In the code :
\n
,
Hope you'll like it.
Pushed my changes with semicolon insertion. If you will resolve conflicts, I will merge this :)
Done :)
Okay, merging :)
Major changes
Note before : I took decisions to write this code, you could like it, or not. If you don't, close it and that's all ^^
The "Conditions.rx" is the most complete example for all the changes added in this PR :
What's new ?
:
(and so, multiline is managed properly)self class
is replaced byclass self
to be more natural for everyone (no value added with the inversion)<
is like ruby, it represents inheritance and will be replaced by "extends"::
is replaced by "implements"class MyClass
instead ofclass self
(both are valid)In the code :
\n
in the tokens, it's needed for class declaration<
,::
,,
(::
is added before to be parsed before:
of course)Hope you'll like it.