Commit Graph

941 Commits

Author SHA1 Message Date
6abb65a04c
declare() is a stupid and useless construct. It will not be supported in P#. 2018-07-15 12:22:37 +02:00
9fe3ae2221
Fix indentation 2018-07-15 12:11:30 +02:00
6d0e346b7d
Correct coding style 2018-07-15 11:57:22 +02:00
4b05081d4a
Makefile can be also used on Windows, but it needs some tweaks 2018-07-15 11:54:00 +02:00
0178ff0495
Enable debugging symbols 2018-07-15 11:50:27 +02:00
ac3f78785a
Add tasks for compiling P# on Unix-like OS 2018-07-15 11:34:32 +02:00
e9c61bd49a
Updated VSCode to 1.25.1 2018-07-15 11:14:24 +02:00
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
796acc5539
Enable math builtin functions 2018-07-13 22:04:50 +02:00
408ccc73c2
Do not switch to public visibility when dealing with constructor and/or destructor, this impairs language. 2018-07-13 18:14:39 +02:00
d0357787db
Do not consider a method with the same name as class name to be a constructor, nor do not create such alias. This is some event from old PHP4, we do not want to support. Magic methods <__construct() & __destruct()> are more than
enough.
2018-07-13 17:58:50 +02:00
e53cfb8ba0
Import unified template 2018-07-12 18:38:52 +02:00
5d1e75d72c
There will be no PDO. P# will contain DBAL 2018-07-12 18:21:14 +02:00
0552e388e7
Cleanup the code 2018-07-12 18:19:21 +02:00
7a8d95efd9
Small rewrite of Makefile 2018-07-12 18:18:06 +02:00
0c4f5bcd75
Serialization cannot depend on JSON. It needs to be rewritten in the future 2018-07-12 18:12:27 +02:00
c8559bc111
VS Code configuration for P# project 2018-07-12 18:10:19 +02:00
4eb2e76498
Borrowed from Bash, but unnecessary 2018-07-12 18:08:25 +02:00
caedd1a9f8
Only bool, float, int. They dont need synonyms. 2018-07-12 18:07:56 +02:00
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
fb9e0726d8
No amalgamation here 2018-07-12 17:59:18 +02:00
8dd1305a51
Use astyle to format source code properly 2018-07-12 17:36:19 +02:00
4071f0b8ee
P# supports only ^^ keyword as a logical XOR. There is no need to have 'xor'. 2018-07-12 17:35:42 +02:00
d898cd1e36
Code formatting 2018-07-12 17:24:46 +02:00
03bfd2203c
Reorganisation 2018-07-12 16:20:39 +02:00
25264bd774
extension in PH7, but standard in P# 2018-07-12 16:15:58 +02:00
0ad681ccf6
There is no fixed rule and XOR has different position in programming languages, but it has surely not higher precedence than AND and not lower than OR 2018-07-12 16:15:27 +02:00
5ad57f6740
Implement logical XOR operator (^^) 2018-07-12 16:14:51 +02:00
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
dce1b38e79
P# allows to use multiline string block, thus heredoc/newdoc syntax is not needed 2018-07-12 16:01:47 +02:00
c7feffc43f
GOTO is an evil statement and should be avoid. Its not available in P# 2018-07-12 16:00:32 +02:00
612d15f676
Rename file 2018-07-12 15:59:22 +02:00
96fe73a39f
Be able to compile with -Wwrite-strings 2018-07-12 15:58:29 +02:00
dff0a5c968
Replace automatically generated code with a more friendly equivalent 2018-07-12 15:50:47 +02:00
f577943861
Fix VmEvalChunk() to also initialize and install static and constant class attributes 2018-07-12 15:48:30 +02:00
538ea8524a
Remove unused constant 2018-07-12 15:24:01 +02:00
74d8f3f190
Avoid duplication of code 2018-07-12 15:23:24 +02:00
e3427042c8
This readme is obsolete as it covers PH7 only. New readme for P# needs to be written. 2018-07-12 15:21:50 +02:00
331e21cb12 GCC does not like large constants without a suffix 2018-07-12 15:17:17 +02:00
8f7f9a1ef8 Fix build on some Solaris installations 2018-07-12 15:16:39 +02:00
Rafal Kupiec
f3152333d6 Fix ord() showing negative values for some special characters. This fixes PH7 ticket #18 2018-07-12 13:49:10 +02:00
Rafal Kupiec
4a98bdc865 dos2unix 2018-07-12 13:45:11 +02:00
Rafal Kupiec
404a2cb402 Fix mutex memory leak in ph7_vm_release() 2018-07-12 13:43:21 +02:00
Rafal Kupiec
25a0e7d64e More generic Makefile, allowing to build just source files with changes 2018-07-12 13:32:53 +02:00
Rafal Kupiec
520e2280e4 No amalgamation 2018-07-12 13:31:05 +02:00
Rafal Kupiec
34a5eb817c Add cleaning option 2018-07-12 13:29:59 +02:00
Rafal Kupiec
ef0c9a157b Add simple interpreter and let it build from de-amalgamated source code 2018-07-12 13:28:46 +02:00
Rafal Kupiec
5b10ea3b41 de-amalgamation of code for easier maintenance 2018-07-12 13:26:32 +02:00
Rafal Kupiec
3ad53da597 We do not need any C examples 2018-07-12 13:17:29 +02:00
Rafal Kupiec
4202cc559d We will relicense the project under GPLv3 with a permission of Symisc Systems, SUARL 2018-07-12 13:15:49 +02:00