89 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 65b178932a
Get rid of array() & list() for the new syntax. 3 years ago
Rafal Kupiec 075d2f0963
Temporary workaround to allow the use of curly braces and array() syntax concurrently. 3 years ago
Rafal Kupiec b60c1de4cf
Abort on SXERR_ABORT, #47. 3 years ago
Rafal Kupiec 23601fe9c5
Partially fix #47, static variables are still affected. 3 years ago
Rafal Kupiec c26f8cd777
Strict data types for classes and interfaces: 3 years ago
Rafal Kupiec 615e75fb8a
Store methods return type. 3 years ago
Rafal Kupiec 7897f28ebb
Fix parameters order. 3 years ago
Rafal Kupiec df3d00d02c
Revert f1d4d80f65. 3 years ago
Rafal Kupiec 051bca470e
Save the closure return data type for further use. 3 years ago
Rafal Kupiec f1d4d80f65
Cleanup keywords. 3 years ago
Rafal Kupiec d87ce3ad1d
1. Set a proper data type when compiling closure. 4 years ago
Rafal Kupiec e5fb7d625e
Allow only a colon as variable separator. 4 years ago
Rafal Kupiec dd774be005
Fix for() loop, do not use iP1 for OP_LOAD. 4 years ago
Rafal Kupiec 28a5fa59ad
Duplicate variable name. Fix variable declaration. 4 years ago
Rafal Kupiec f927667d85
Strictly check for data type of static variable declaration. 4 years ago
Rafal Kupiec 79e4bac7eb
Remove no longer used PH7_CompileStatic(). 4 years ago
Rafal Kupiec bd4d146d0a
Initial version of variable definition. 4 years ago
Rafal Kupiec 241c7d8168
First step to declare a variable with specified data type. 4 years ago
Rafal Kupiec e6e59d299e
Fix method parameters. 4 years ago
Rafal Kupiec 9884f8288b
Do not allow typecasting to unset a variable. 4 years ago
Rafal Kupiec 94ae7d187b
No data type for argument specified leads to E_ERROR. 4 years ago
Rafal Kupiec 8b48786f29
Add missing data types. 4 years ago
Rafal Kupiec 74b1c196f9
Treat invalid type name as error. 4 years ago
Rafal Kupiec d4992ff4ba
At least try to report correct line number. 4 years ago
Rafal Kupiec ae79cb57de
No need to store information about line number in ph7_class struct. 4 years ago
Rafal Kupiec 894dbe47d6
Allow compiler to specify line number, on which instruction has been generated. 4 years ago
Rafal Kupiec 03e452ea7b
Shutdown library properly on error. 4 years ago
Rafal Kupiec 94b213674a
Change the script located in memory indicator. 4 years ago
Rafal Kupiec dbe373d537
Resolve __CLASS__ at compile time. 4 years ago
Rafal Kupiec 3e18a5b8e8
Optimize the code, #45. 4 years ago
Rafal Kupiec a0f7949b24
Resolve __DIR__ at compile time. 4 years ago
Rafal Kupiec 02242bb93d
Resolve __FILE__ at compile time. 4 years ago
Rafal Kupiec 19a504fe11
Enter the class block during compilation, #45. 4 years ago
Rafal Kupiec f28c671e69
Compile closures. 4 years ago
Rafal Kupiec a8961eb36f
Fix build 4 years ago
Rafal Kupiec 2c28b63d90
Properly interpret language constructs, fixes #28. 4 years ago
Rafal Kupiec 510410096b
Aer is OOP language. There is nothing like function. 4 years ago
Rafal Kupiec 4961922b1d
Unify error with other related to namespace. 4 years ago
Rafal Kupiec 793b6127d5
Temporarily fix namespace support. 4 years ago
Rafal Kupiec 787f3b5d5f
Synchronize the namespace also with first semicolon. 4 years ago
Rafal Kupiec be27532fdf
Unify error level for namespace support. 4 years ago
Rafal Kupiec e208e778e0
Compile global scope independently, fixes #40. 4 years ago
Rafal Kupiec 64b9ac4406
Forward declaration already in compiler.h 4 years ago
Rafal Kupiec be454ff7be
Rename PH7_COMPILE_SINGLE_STMT to PH7_COMPILE_STATEMENT 4 years ago
Rafal Kupiec ece036b214
Rework the entry point 4 years ago
Rafal Kupiec 7e3c79d3c5
Functions naming cleanup 4 years ago
Rafal Kupiec 02fde9c30f
It is not PHP compiler 4 years ago
Rafal Kupiec aa6e00db27
Forward declaration for all functions. 4 years ago
Rafal Kupiec 59c15caf4e
Use something more human readable 4 years ago