Commit Graph

13 Commits

Author SHA1 Message Date
Rafal Kupiec ee5504ea3a
Initial support for modules, partially implements #1 2018-07-18 22:01:04 +02:00
Rafal Kupiec 6abb65a04c
declare() is a stupid and useless construct. It will not be supported in P#. 2018-07-15 12:22:37 +02:00
Rafal Kupiec 4f4371545b
Implement register_autoload_handler() builtin function, that registers any number of autoloaders, enabling for classes to be automatically loaded if they are not defined.
Implement a mechanism, to iterate through registered autoload callbacks until class is found.
2018-07-15 00:06:26 +02:00
Rafal Kupiec 5d1e75d72c
There will be no PDO. P# will contain DBAL 2018-07-12 18:21:14 +02:00
Rafal Kupiec 8b59a01198
There is no need to use 'and' & 'or' keywords, as P# supports also '&&' and '||' to use respectively 2018-07-12 18:07:09 +02:00
Rafal Kupiec fb9e0726d8
No amalgamation here 2018-07-12 17:59:18 +02:00
Rafal Kupiec 4071f0b8ee
P# supports only ^^ keyword as a logical XOR. There is no need to have 'xor'. 2018-07-12 17:35:42 +02:00
Rafal Kupiec d898cd1e36
Code formatting 2018-07-12 17:24:46 +02:00
Rafal Kupiec f212588ab1
Removing unnecessary operators (eq, ne). Some special strings comparison should be implemented as a function like strcmp(). 2018-07-12 16:05:11 +02:00
Rafal Kupiec dce1b38e79
P# allows to use multiline string block, thus heredoc/newdoc syntax is not needed 2018-07-12 16:01:47 +02:00
Rafal Kupiec c7feffc43f
GOTO is an evil statement and should be avoid. Its not available in P# 2018-07-12 16:00:32 +02:00
Rafal Kupiec 331e21cb12 GCC does not like large constants without a suffix 2018-07-12 15:17:17 +02:00
Rafal Kupiec 5b10ea3b41 de-amalgamation of code for easier maintenance 2018-07-12 13:26:32 +02:00