Typehinting merge #50

Merged
belliash merged 298 commits from typehinting into master 2019-04-17 11:27:52 +02:00
Showing only changes of commit fc3a66315b - Show all commits

8
TODO
View File

@ -5,10 +5,4 @@ Below list contains things that should be changed/fixed/implemented.
1. int[] $arr = {5, 5}; 1. int[] $arr = {5, 5};
This syntax is unsupported yet. Should replace the array() function. This syntax is unsupported yet. Should replace the array() function.
2. Class properties do not support strict data type hinting. 2. Some builtin functions like isset() seems to be useless, if varaible is not defined, interpreter will throw an error.
3. Methods declaration / definition still uses function keyword.
4. Some builtin functions like isset() seems to be useless, if varaible is not defined, interpreter will throw an error.
5. Interpreter should verify that Program::main() returns a value of int or void data type.