808 Commits (a2fb0b9ae5916defcb48ea809db6e105d1785af8)
 

Author SHA1 Message Date
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
Rafal Kupiec 62c315da9e
Call to undefined constant should lead to an error. 3 years ago
Rafal Kupiec 10516fb655
Remove useless comments from BrainFuck tests. 3 years ago
Rafal Kupiec f09d4def2d
It's AerScript. 3 years ago
Rafal Kupiec d6fca929ea
Callbacks can be just called. 3 years ago
Rafal Kupiec 6593252bce
Remove get_defined_functions() built-in function. 3 years ago
Rafal Kupiec d26bc99b68
There is no reason to trigger a low-level error in AerScript. 3 years ago
Rafal Kupiec 00c502c11b
Get rid of import_request_variables() builtin function. Its pure evil. 3 years ago
Rafal Kupiec 9f4f6298c2
Do not create variable in foreach() loop automatically. 3 years ago
Rafal Kupiec 2bda002259
Add missing variables declaration. 3 years ago
Rafal Kupiec eef5ee370d
Remove this useless wrapper function. 3 years ago
Rafal Kupiec 8ab3919688
Class names should be case sensitive. 3 years ago
Rafal Kupiec 58015f2a20
Correct typo. 3 years ago
Rafal Kupiec d72774f0f4
Namespaces in AerScript do not support aliases. 3 years ago
Rafal Kupiec 407fb09e8f
Throw an error only if this is not the end of tokens stream. 3 years ago