822 Commits (48ccd7fef0e71c6d397aefcef84d031e26dd6272)
 

Author SHA1 Message Date
Rafal Kupiec 48ccd7fef0
Copy all attributes from base classes and emit a warning if redeclared in subclass. 3 years ago
Rafal Kupiec e8c675bd8e
Store a pointer to class container to reduce memory usage. 3 years ago
Rafal Kupiec 7203492763
Store a class name in each attribute. 3 years ago
Rafal Kupiec 8aed5af238
Correct indentation. 3 years ago
Rafal Kupiec f2116a6461
Always use HTTPS when possible. 3 years ago
Rafal Kupiec 5d9b73ba4e
Use method full name. 3 years ago
Rafal Kupiec 3cc347f25f
Correct CLI command name. 3 years ago
Rafal Kupiec 27e3b85b30
This is AerScript interpreter. 3 years ago
Rafal Kupiec 5256dda922
Attempt to fix '$this' and '$parent' constructs. 3 years ago
Rafal Kupiec ea5499f8b3
Private methods should not be accessible from child class. 3 years ago
Rafal Kupiec 5e7d5957e2
Distinguish methods from attributes. 3 years ago
Rafal Kupiec d3d3dff673
Do not allow to call statically a non-static method. 3 years ago
Rafal Kupiec c4416ef631
Fix singleton test. 3 years ago
Rafal Kupiec 76880ae4e2
Extend this test. 3 years ago
Rafal Kupiec a2fb0b9ae5
Get rid of 'parent' constant. Use variable instead. 3 years ago
Rafal Kupiec 07bd3ceec3
Reimplement 'parent' construct as variable $parent. 3 years ago
Rafal Kupiec 0c8ca53f70
Continuous numeration. 3 years ago
Rafal Kupiec 03c37c58bb
Add constants test. 3 years ago
Rafal Kupiec 17e0fb4653
Do not try to resolve constants when OP_MEMBER is next instruction on the stack. 3 years ago
Rafal Kupiec d3ae1c1bf4
Only identifiers should be allowed as constant name. 3 years ago
Rafal Kupiec cedc288f67
Remove static constant. 3 years ago
Rafal Kupiec 0a6b5a6f42
The 'self' and 'parent' keywords should be resolved at compile time. 3 years ago
Rafal Kupiec 7b6245572f
Remove constants management builtin functions. 3 years ago
Rafal Kupiec 9d84c558c4
New test for goto statement. 3 years ago
Rafal Kupiec c4b63a3018
Rename OP_LOAD instruction to OP_LOADV. 3 years ago
Rafal Kupiec 23900f2aed
Remove unused compiler function - PH7_CompileLangConstruct(). 3 years ago
Rafal Kupiec b36510943d
Implement 'define' statement for defining constants globally. 3 years ago
Rafal Kupiec ab8bf48485
Make constant declarations local. 3 years ago
Rafal Kupiec 90b2da7c56
Unify constant length. 3 years ago
Rafal Kupiec e6b7f1be2c
Always emit OP_JMPLFE as goto can be used inside a loop and frame has to be left. 3 years ago
Rafal Kupiec 03fc167be1
Proper implementation of so hated 'goto' statement. 3 years ago
Rafal Kupiec 2f3ce65289
Correct comment to if/else statements. 3 years ago
Rafal Kupiec 73c1a814f5
Test foreach() loop. 3 years ago
Rafal Kupiec 8f681d1605
Correct PH7_OP_JMPLFE debug name. 3 years ago
Rafal Kupiec 5a0e4667fa
More readable error message. 3 years ago
Rafal Kupiec 508e8965a9
VmExtractMemObj() should not be able to create a variable. 3 years ago
Rafal Kupiec 7d606cbf1d
Do not create variables automatically on each OP_CALL using VmExtractMemObj(). 3 years ago
Rafal Kupiec 3dfa4232ba
Use VmCreateMemObj() to create $this. 3 years ago
Rafal Kupiec 7c37451520
Namespaces are not supported and broken, but compile them properly. 3 years ago
Rafal Kupiec 1829eff323
Fix interface and class compilation. 3 years ago
Rafal Kupiec 798fd7d3b2
Remove unused and useless VM instruction. 3 years ago
Rafal Kupiec 70676cb0d5
Correct comment. 3 years ago
Rafal Kupiec d76441ad4c
Safely store only compatible values. 3 years ago
Rafal Kupiec 186e5887f6
We can now declare key and value variables inside a loop. 3 years ago
Rafal Kupiec bbcd99789d
Fix test. 3 years ago
Rafal Kupiec 1d6822c1e2
Allow key and value declaration inside foreach() loop. 3 years ago
Rafal Kupiec a726ab795a
Throw an error if $key or $value does not exist. 3 years ago
Rafal Kupiec 5c1e0f0cce
Simplify the foreach() loop implementation. 3 years ago
Rafal Kupiec 4d8d92092e
Refactor foreach() loop. 3 years ago
Rafal Kupiec 1156519af6
This is a compiler task to fill key and value variables names. 3 years ago