29 Commits (4f29507c0da4f1a621fedcb8bec07bbf7d667821)

Author SHA1 Message Date
Rafal Kupiec 4f29507c0d
The isset() function always results in true, thus it is useless. If passed as argument variable is not set, the interpreter will throw an error. 3 years ago
Rafal Kupiec 135e7c9698
VAR & FUNCTION are no longer valid keywords. 3 years ago
Rafal Kupiec 65b178932a
Get rid of array() & list() for the new syntax. 3 years ago
Rafal Kupiec df3d00d02c
Revert f1d4d80f65. 3 years ago
Rafal Kupiec f1d4d80f65
Cleanup keywords. 3 years ago
Rafal Kupiec fa0b487cc0
Implement typecasting to resource data type. 3 years ago
Rafal Kupiec 784c705af6
Add callback cast operator. 4 years ago
Rafal Kupiec d65a529d21
Initial support for char data type. 4 years ago
Rafal Kupiec 174ecb2a38
Initial support for void type. 4 years ago
Rafal Kupiec 9884f8288b
Do not allow typecasting to unset a variable. 4 years ago
Rafal Kupiec 0a9cfce672
Group and add missing keywords. 4 years ago
Rafal Kupiec fbc725c935
We are tokenizing Aer. 4 years ago
Rafal Kupiec 9100bf0696
Treat 'import' as a special keyword. 4 years ago
Rafal Kupiec b5fe36c14b
There is no need for include_once() and require_once() 4 years ago
Rafal Kupiec 7e3c79d3c5
Functions naming cleanup 4 years ago
Rafal Kupiec d7f9d8e157
Add missing 'finally' keyword. 4 years ago
Rafal Kupiec 59c15caf4e
Use something more human readable 4 years ago
Rafal Kupiec a4e6962a67
Free dot operator for further usage 4 years ago
Rafal Kupiec 4bbdc20174
This commit contains several changes: 4 years ago
Rafal Kupiec e0b939d9a2
In general it is a bad idea to compare memory. We should compare strings and check its length. Fixes #34. 4 years ago
Rafal Kupiec 2c37807370
Get rid of global keyword, fixes #29 4 years ago
Rafal Kupiec 7b3e6c5b76
P# introduces virtual classes and virtual methods 4 years ago
Rafal Kupiec b7792dfc3d
P# is not going to derive namespace syntax from PHP, but from C++. 4 years ago
Rafal Kupiec 5cb19f63a5
Get rid of alternative syntax for control structures (endif, endwhile, endfor, endforeach). Only curly brackets are allowed. 4 years ago
Rafal Kupiec 159cd76020
No need to duplicate exit() 4 years ago
Rafal Kupiec 3f1397ed93
Get rid of switch: endswitch construct 4 years ago
Rafal Kupiec ef2ea60a60
Treat whole file as P# source code. Fixes #24. 4 years ago
Rafal Kupiec d3ff86f692
Correct some typos 4 years ago
Rafal Kupiec abb91a9874
Reorganize the repository for new build system 4 years ago
Rafal Kupiec 6abb65a04c
declare() is a stupid and useless construct. It will not be supported in P#. 4 years ago
Rafal Kupiec 4eb2e76498
Borrowed from Bash, but unnecessary 4 years ago
Rafal Kupiec caedd1a9f8
Only bool, float, int. They dont need synonyms. 4 years ago
Rafal Kupiec 8b59a01198
There is no need to use 'and' & 'or' keywords, as P# supports also '&&' and '||' to use respectively 4 years ago
Rafal Kupiec 4071f0b8ee
P# supports only ^^ keyword as a logical XOR. There is no need to have 'xor'. 4 years ago
Rafal Kupiec d898cd1e36
Code formatting 4 years ago
Rafal Kupiec 03bfd2203c
Reorganisation 4 years ago
Rafal Kupiec 5ad57f6740
Implement logical XOR operator (^^) 4 years ago
Rafal Kupiec f212588ab1
Removing unnecessary operators (eq, ne). Some special strings comparison should be implemented as a function like strcmp(). 4 years ago
Rafal Kupiec dce1b38e79
P# allows to use multiline string block, thus heredoc/newdoc syntax is not needed 4 years ago
Rafal Kupiec c7feffc43f
GOTO is an evil statement and should be avoid. Its not available in P# 4 years ago
Rafal Kupiec dff0a5c968
Replace automatically generated code with a more friendly equivalent 4 years ago
Rafal Kupiec 520e2280e4 No amalgamation 4 years ago
Rafal Kupiec 5b10ea3b41 de-amalgamation of code for easier maintenance 4 years ago