- Added the ability to compile executable binaries for php using gcc

- Refactored execution unit system to use a new execution pointer system
 - Refactored `PhpRunner` to use the new execution pointer system
 - Refactored `BashRunner` to use the new execution pointer system
 - Refactored `LuaRunner` to use the new execution pointer system
 - Refactored `PerlRunner` to use the new execution pointer system
 - Refactored `PythonRunner` to use the new execution pointer system
 - Removed dependency `theseer\Autoload` in favor of ncc's own autoloader (screw you Arne Blankerts)
 - Refactored ZiProto
 - Removed runners `Python2` & `Python3` in favor of `Python`
This commit is contained in:
Netkas 2023-09-10 22:47:24 -04:00
parent ab32a3bba3
commit de88a4fb9e
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
123 changed files with 4370 additions and 7266 deletions

View file

@ -0,0 +1,14 @@
<?php
require 'ncc';
$files = \ncc\Utilities\Functions::scanDirectory(
'/home/netkas/PhpstormProjects/ncc/src/ncc',
\ncc\Enums\ComponentFileExtensions::PHP
);
$autoload_generator = new \ncc\Classes\PhpExtension\AutoloadGenerator();
$autoload = $autoload_generator->generateAutoloaderArray($files);
var_dump($files);
var_dump($autoload);

View file

@ -0,0 +1,7 @@
<?php
require 'ncc';
$package_path = '/home/netkas/PhpstormProjects/ncc/tests/projects/lib/build/release/com.example.testlib.ncc';
$package_manager = new \ncc\Managers\PackageManager();
$package_manager->installPackage($package_path);