0802b294b4
Make native class registration use const templates with stack copies, tighten System argument validation and drop unused json_rc
master
belliash2026-11-24 15:44:06 +01:00
1db842fe0f
Add system module with System class, core native exception helper and remove useless builtins
belliash2026-11-24 09:34:27 +01:00
cb894f66fd
Add VM SAPI configuration option and restrict console module to the CLI SAPI
belliash2026-11-23 23:45:16 +01:00
948487fd31
Map string to char conversion to unsigned byte range
belliash2026-11-23 22:47:23 +01:00
4d06edd045
Add TextWriter, IOException, per-VM module data and pre-load imports; Add console module with Console class
belliash2026-11-23 18:36:46 +01:00
2243557bf5
Convert math module to static Math class
belliash2026-11-23 10:22:11 +01:00
c981572bae
Add YAML module with typed DOM, built-in YAML 1.2.2 parser and serializer
belliash2026-11-23 10:20:59 +01:00
329305c071
Warn when non-void methods and closures finish without returning
belliash2026-10-26 18:39:37 +01:00
7ae2412a88
Implement __invoke dispatch and fix VM cleanup and allocator alignment
belliash2026-10-26 15:10:47 +01:00
4fe0f4dcd9
Implement explicit value and reference captures for closures
belliash2026-10-26 00:05:05 +01:00
85f59a2998
Evaluate local constants once per declaration and invocation
belliash2026-10-25 19:57:49 +01:00
8a2d7d8bd3
Fix block scope for local declarations
belliash2026-10-25 19:22:50 +01:00
3e3b795626
Keep source file descriptors stable for the lifetime of the VM and execute included fragments in the enclosing method and closure context
belliash2026-10-25 18:11:22 +01:00
c42b0ae010
Restrict require to global scope and track required files independently
belliash2026-10-24 23:53:53 +02:00
b513add46b
Handle module import failures and duplicates safely and add module_loaded
belliash2026-10-24 22:51:09 +02:00
d7fc8c1137
Determine callback emptiness from the stored target for null coalescing
belliash2026-10-24 21:07:16 +02:00
1026c8d525
Validate interface contracts against effective C3 implementations and support transitive interface checks
belliash2026-10-24 20:19:11 +02:00
c6e7151e72
Implement cooperative parent calls across runtime C3 MRO and enforce lifecycle method rules
belliash2026-10-24 19:20:52 +02:00
d511414453
Preserve class attribute identity and validate inheritance conflicts across C3 MRO
belliash2026-10-24 18:26:58 +02:00
b306409a37
Validate method visibility, final overrides and effective virtual contracts across C3 MRO
belliash2026-10-24 13:50:32 +02:00
5f02a34b10
Resolve inherited method overloads across C3 MRO using full input signatures and own import path storage for the lifetime of the VM
belliash2026-10-24 12:27:01 +02:00
bc5e5f6a8e
Implement C3 class linearization and validate inheritance graphs
belliash2026-10-24 01:16:34 +02:00
323793153c
Implement short-circuit evaluation for the null coalescing operator
belliash2026-10-24 00:30:45 +02:00
18e6da6c08
Preserve runtime object identity and declaring-class scope in inherited method calls
belliash2026-10-24 00:18:24 +02:00
04a74de51a
Preserve declared return types when cloning closures with captures
belliash2026-10-23 23:59:58 +02:00
3c7f1b8f5b
Fix overload resolution using argument compatibility and recursive array matching
belliash2026-10-23 23:36:25 +02:00
469e5ba059
Do not need debug symbols in CI/CD.
belliash2019-12-10 16:23:39 +01:00
9290db2504
Another changes in file inclusion mechanism (#58): * Remove builtin functions: 'include' & 'require' * Implement 'include' and 'require' statements compiler * Implement OP_INCLUDE operator * Allow 'require' statement to be used in global scope as well as in method body and 'include' only in method body
belliash2019-12-10 16:09:26 +01:00
09e7400349
Add forward declaration for VmExecIncludedFile().
belliash2019-12-09 19:36:40 +01:00
cb91a4bbf4
Rework including mechanism (#58) related changes: * VmExecIncludedFile() does not need a call context * Builtin include() function does not need to return false, it throws an error
belliash2019-12-09 19:30:28 +01:00
f3156bcbd5
Throw E_ERROR when impossible to include specified file.
belliash2019-11-27 20:15:43 +01:00
cb71daec12
Code inclusion rework that include several changes (#58): * include() builtin function allows now to include a chunk of code, eg. a body of some loop * include() allows to load and execute file several times * require() still allows to include file just once and included file must have a valid OOP syntax * both functions will throw E_ERROR when impossible to include specified file
belliash2019-11-27 20:07:50 +01:00