There is no need for include_once() and require_once() Aer is object-oriented language and the code it includes is executed in the global scope. Global scope can contain only classes and namespaces and they cannot be re-declared. Thus every file can be included just once. We can leave this to programmer, or take care about it on interpreter side. With this commit, include() and require() builtin functions allows to load file just once. Thanks to that, there is no need for include_once() and require_once(). Done in scope of #30.belliash2018-08-16 16:12:29 +0200
Temporarily fix namespace support. The namespace feature is not supported in this version, they are treated same way as global scope.belliash2018-08-16 12:39:05 +0200
Compiler rework does not allow functions in global scope. These functions will be rewritten in C as a builtin functions in scope of #42.belliash2018-08-15 18:56:10 +0200
Reimplement C-like min() and max() functions. These functions should have C-like implementation and take exactly 2 arguments: integer or float. Finally, C-implementation will be faster than using PH7 builtin library that needs to be compiled and interpreted.belliash2018-08-15 17:26:26 +0200
Rework the entry point * some functions were not used and have been removed * some parameters seemed to be useless and have been removed * code cleanupbelliash2018-08-14 13:45:27 +0200
Several changes made: * Do not overload entry point * Automatically call Program::__construct() * Automatically call Program::main(); * Fix all testsbelliash2018-08-12 12:52:35 +0200
Several changes to virtual class/method. Fixes#41 * do not automatically mark class as virtual when at least one virtual method found * force non-virtual method to contain body * force non-virtual class to implement all methodsbelliash2018-08-11 22:50:05 +0200
3252f54615Temporarily look for modules in binary/ subdirectory. This will allow us to test modules. Final version should take the full path from configuration.belliash2018-08-10 08:47:42 +0200
Always select an appropriate function to call It does not matter, if we call function, anonymouss function or method. It is important to select appropriate function to call everytime. Otherwise, if function or method is not overloaded it will call it regardless the number and type of parameters it takes. typebelliash2018-08-07 19:48:12 +0200
This commit contains several changes: * print() is now treated as standard function * get rid of echo() function * fix test suite and it fixes#26.belliash2018-08-06 17:18:27 +0200
It does not matter if it is empty string or not, we want to process it. Empty string should not ever been even considered as a NULL. Fixing #35.Piotr Likoski2018-08-06 16:13:49 +0200