韩天峰
b0455f143a
rename(compiler): update compiler executable name from compiler.php to tpc.php
...
- Change all documentation references from bin/compiler.php to bin/tpc.php
- Update composer.json with new binary entry point
- Update run-tests.php default compiler path
- Update all example commands and guides to use new executable name
- Add composer package configuration for swoole/typephp
- Update README installation instructions for new naming convention
2 months ago
韩天峰
492116d3c0
refactor(tests): replace native_types and complex_types with Type constants
...
- Replaced all occurrences of native_types::type_* with Type::* constants
- Replaced all occurrences of complex_types::type_* with Type::* constants
- Updated ExtensionProvider annotation to use ExtensionProvider::Keyword
- Modified std array, vector, map, ordered_map, bigfloat, bigint, decimal tests
- Updated stream, array multidimensional, unsafe pointer, and type mismatch tests
- Changed camel case keyword extension to use Type::Any constant
- Updated documentation to reflect Type::* constant usage instead of type_* constants
2 months ago
韩天峰
e16f103cc7
chore(deps): 更新项目依赖包到最新版本
...
- 更新 league/climate 从 3.10.1 到 3.11.0
- 更新 symfony/polyfill-ctype 从 v1.36.0 到 v1.37.0
- 更新 symfony/polyfill-mbstring 从 v1.36.0 到 v1.38.2
- 更新 symfony/var-dumper 从 v8.0.8 到 v8.1.0
- 更新 symfony/yaml 从 v8.0.8 到 v8.1.0
- 更新 composer/pcre 从 3.3.2 到 3.4.0
- 更新 ergebnis/agent-detector 从 1.1.1 到 1.2.0
- 更新 friendsofphp/php-cs-fixer 从 v3.95.1 到 v3.95.11
- 更新 symfony/console 从 v8.0.8 到 v8.1.0
- 更新 symfony/deprecation-contracts 从 v3.6.0 到 v3.7.0
- 更新 symfony/event-dispatcher 从 v8.0.8 到 v8.1.0
- 更新 symfony/event-dispatcher-contracts 从 v3.6.0 到 v3.7.0
- 更新 symfony/filesystem 从 v8.0.8 到 v8.1.0
- 更新 symfony/finder 从 v8.0.8 到 v8.1.0
- 更新 symfony/options-resolver 从 v8.0.8 到 v8.1.0
- 更新 symfony/polyfill-intl-grapheme 从 v1.36.0 到 v1.38.1
- 更新 symfony/polyfill-intl-normalizer 从 v1.36.0 到 v1.38.0
2 months ago
韩天峰
601b985600
feat(compiler): 添加进度条显示并更新依赖库
...
- 集成 ajaxray/ansikit 库用于终端UI显示
- 升级 swoole/phpx 从 v2.1.4 到 v2.3.9 版本
- 在并行编译过程中添加进度条实时显示编译进度
- 移除函数返回类型的推断逻辑和相关字段
- 设置PHP平台版本要求为 >=8.2 <8.6
- 优化编译失败时的错误输出格式
2 months ago
韩天峰
d78a43099d
refactor(php): 重构 PHP 编译器基础类以使用 phpx 库
...
- 移除硬编码的 phpx 目录路径,改用动态获取方法
- 将 phpx 目录设置方法从公共改为受保护,并返回 vendor 中的 phpx 路径
- 更新 include 和 lib 目录路径为从 phpx 库动态获取
- 在 composer.json 中添加 swoole/phpx 依赖
- 添加构建前检查 php-config 和必要库文件的验证逻辑
- 更新源文件路径为从 phpx 库目录中获取
- 为 debug-info 参数添加默认值配置
4 months ago
韩天峰
69a1c24610
refactor(bootstrap): 调整函数文件加载方式并更新依赖
...
- 将 src/functions.php 从 composer autoloader 移至 bootstrap 文件直接引入
- 更新 composer.json 配置移除 functions.php 的文件自动加载配置
- 升级多个依赖包版本包括 league/climate、symfony 相关组件等
- 新增 ergebnis/agent-detector 依赖用于代理检测功能
- 更新 phpunit 和相关开发依赖到最新稳定版本
5 months ago
韩天峰
09af173013
feat(compiler): 添加项目配置文件支持和编译选项扩展
...
- 在 CompilerBase 中新增 cxxflags 和 ldflags 属性用于编译选项配置
- 集成 symfony/yaml 依赖以支持 YAML 配置文件解析
- 实现 project.yml 配置文件格式用于定义项目构建参数
- 添加 parseProjectYaml 方法解析 YAML 配置并设置编译标志
- 修改 getFiles 方法以支持目录扫描和 YAML 配置文件处理
- 更新 composer.json 和 composer.lock 文件添加新依赖项
7 months ago
韩天峰
c7c375019d
refactor(compiler): 重构编译器配置和代码逻辑
...
- 将命令行参数配置提取到独立的配置文件 compiler_options.php
- 添加新的调试选项包括 debug-line 和 force 参数
- 替换 var_dump 为 symfony/var-dumper 的 dump 函数
- 优化赋值表达式处理逻辑,改进 inAssignExpr 状态管理
- 修复返回语句中间接引用可能导致的内存安全问题
- 添加临时变量确保返回值的内存安全
- 重构属性访问解析方法,传入赋值状态参数
- 更新 composer 依赖,添加 symfony/var-dumper 支持
- 移除调试相关的 var_dump 输出语句
- 优化数组维度获取和属性访问的解析流程
7 months ago
韩天峰
6ff687e1da
Interface,ce 依赖关系处理,排序
8 months ago
韩天峰
ca1ee88d5f
支持 class 处理,初步版本
8 months ago
韩天峰
e867d32e60
命令行参数
8 months ago
韩天峰
5053797463
引入 cs-fix , 格式化代码
2 years ago
韩天峰
95c8a8e03d
迁移目录
3 years ago