Commit Graph

19 Commits

Author SHA1 Message Date
Rafal Kupiec d65a529d21
Initial support for char data type.
The build was successful. Details
2018-11-26 20:37:51 +01:00
Rafal Kupiec 174ecb2a38
Initial support for void type.
The build was successful. Details
2018-11-23 09:19:37 +01:00
Rafal Kupiec eb79ed500e
Store float values in an union.
The build was successful. Details
Single variable cannot have many values of different types. This also saves some memory, because union allocates memory just for one of its members.
2018-09-07 12:04:51 +02:00
Rafal Kupiec af1d59dab4
Don't try to get an integer representation of float.
The build was successful. Details
2018-09-07 06:49:50 +02:00
Rafal Kupiec dc0a55c8c0
Cleanup old error handler.
The build was successful. Details
2018-09-04 08:38:41 +02:00
Rafal Kupiec 349bbed774
Allow to enable or disable debugging.
The build has failed. Details
2018-08-27 19:53:24 +02:00
Rafal Kupiec 6d27069590
Add new file for every chunk.
The build was successful. Details
Every chunk should has its own file associated, even if it is [MEMORY]. Otherwise, some false information can be provided by interpreter to developer.
2018-08-27 18:04:45 +02:00
Rafal Kupiec 877d19a815
API function rename.
The build was successful. Details
2018-08-26 18:30:21 +02:00
Rafal Kupiec 4dbd3ea412
New memory subsystem.
The build was successful. Details
This is a new memory subsystem implementing heap calculations as well as new builtin functions:
 * get_memory_usage()
 * get_memory_peak_usage()
 * get_memory_limit()
It also allows to set an upper memory limit, ensuring that processed script will not be able to allocate more memory from OS.
New subsystem is based on work done in 'memory_limit' branch. Big thanks to devnexen!
This finally fixes #25.
2018-08-18 19:24:38 +02:00
Rafal Kupiec b94a23d580
Get rid of PH7 ident
The build was successful. Details
2018-08-15 20:03:39 +02:00
Rafal Kupiec 26b1675021
API function rename
The build was successful. Details
2018-08-14 17:43:43 +02:00
Rafal Kupiec ece036b214
Rework the entry point
The build was successful. Details
* some functions were not used and have been removed
 * some parameters seemed to be useless and have been removed
 * code cleanup
2018-08-14 13:45:27 +02:00
Rafal Kupiec 7e3c79d3c5
Functions naming cleanup
The build was successful. Details
2018-08-13 20:16:37 +02:00
Rafal Kupiec 63b0f450d3
Move VM initialization into separate step to enable errors reporting earlier. 2018-07-25 18:15:40 +02:00
Rafal Kupiec a9637d2c8a
This partially implements #16 - currently only for entry file. 2018-07-24 09:06:35 +02:00
Rafal Kupiec 965f19b9b7
Add scripts directory to the include path. This fixes #17. 2018-07-24 08:05:08 +02:00
Rafal Kupiec 52d9616503
Revert d937d0c825 2018-07-23 19:39:21 +02:00
David Carlier dba8e5098f fixing in the vm context instead, making the feature available in case realpath could be implemented as well 2018-07-23 06:07:27 +01:00
Rafal Kupiec abb91a9874
Reorganize the repository for new build system 2018-07-20 22:35:09 +02:00