Problem
Web apps use const VERSION = '1.0';, define('DEBUG', true);, and class constants for config. Support in CFG → opcodes → VM is incomplete or missing.
Goal
const APP_NAME = 'MiniWeb';
define('MAX_UPLOAD', 1024);
class Config { public const ENV = 'prod'; }
Tasks
Acceptance criteria
Echo constants from global and class scope in VM and JIT.
Dependencies
Files
lib/Compiler.php, lib/VM.php, lib/OpCode.php
Problem
Web apps use
const VERSION = '1.0';,define('DEBUG', true);, and class constants for config. Support in CFG → opcodes → VM is incomplete or missing.Goal
Tasks
Op\Stmt\Const_anddefine()callsconstincompileClassBody(extend beyond properties)Acceptance criteria
Echo constants from global and class scope in VM and JIT.
Dependencies
__DIR__for config pathsFiles
lib/Compiler.php,lib/VM.php,lib/OpCode.php