diff --git a/CLAUDE.md b/CLAUDE.md index 36ea56df..117ae0e7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -79,12 +79,12 @@ src/CompilerBase.php (core PHP→C++ translation logic, indent/output/mode helpe | `src/Context/` | `ScopeContext` and `FunctionContext` for variable scoping and type tracking | | `src/Exception/` | `SyntaxError`, `Unsupported`, `DynamicCall`, `PlaceHolder`, `Skip`, `Redo`, `TestError` | | `src/Parser/` | Special-purpose parsers like `StdContainerParser` (C++ std container foreach support) | -| `src/Reflection.php` | Static helpers wrapping PHP reflection (internal class/function detection) | -| `src/Symbol.php` | Maps PHP operations to `phpx` C++ API symbol names | -| `src/FileScanner.php` | Recursive file discovery with extension filtering (supports `.php`, `.cpp`, `.c`, `.s`, `.m`, `.mm`) | -| `src/ArgInfo.php` | Generates C function argument info structures for internal function registration | +| `src/Resolver/Reflection.php` | Static helpers wrapping PHP reflection (internal class/function detection) | +| `src/Generator/Symbol.php` | Maps PHP operations to `phpx` C++ API symbol names | +| `src/Build/FileScanner.php` | Recursive file discovery with extension filtering (supports `.php`, `.cpp`, `.c`, `.s`, `.m`, `.mm`) | +| `src/Entity/ArgInfo.php` | Generates C function argument info structures for internal function registration | | `src/Extractor.php` | Extracts interfaces from PHP classes | -| `src/Visitor.php` | Base `NodeVisitorAbstract` extension (skeleton for custom AST visitors) | +| `src/Transform/Visitor.php` | Base `NodeVisitorAbstract` extension (skeleton for custom AST visitors) | ### Configuration diff --git a/docs/UNIVERSAL_METHODS.md b/docs/UNIVERSAL_METHODS.md index 52e609b2..59f1b7dc 100644 --- a/docs/UNIVERSAL_METHODS.md +++ b/docs/UNIVERSAL_METHODS.md @@ -1103,7 +1103,7 @@ function main(): void { - **高精度类型教程**:[`docs/HIGH_PRECISION_TYPES.md`](HIGH_PRECISION_TYPES.md) - **类型系统规范**:[`docs/NATIVE_TYPES.md`](NATIVE_TYPES.md) -- **通用方法实现**:[`src/UniversalMethodCall.php`](../src/UniversalMethodCall.php) +- **通用方法实现**:[`src/Parser/UniversalMethodCall.php`](../src/Parser/UniversalMethodCall.php) - **集成测试**: - [`tests/aot/string_method/`](../tests/aot/string_method/) — String 通用方法测试 - [`tests/aot/array_method/`](../tests/aot/array_method/) — Array 通用方法测试 diff --git a/examples/file_scanner_example.php b/examples/file_scanner_example.php index c1efc491..d6970063 100644 --- a/examples/file_scanner_example.php +++ b/examples/file_scanner_example.php @@ -1,6 +1,8 @@ getMessage() . "\n"; -} \ No newline at end of file +} diff --git a/examples/file_scanner_usage.php b/examples/file_scanner_usage.php index 1e5543f3..401777bc 100644 --- a/examples/file_scanner_usage.php +++ b/examples/file_scanner_usage.php @@ -1,9 +1,9 @@ getMessage() . "\n"; -} \ No newline at end of file +} diff --git a/examples/simple_scan.php b/examples/simple_scan.php index b4c5097a..4e124ffc 100644 --- a/examples/simple_scan.php +++ b/examples/simple_scan.php @@ -1,6 +1,8 @@ getMessage() . "\n"; -} \ No newline at end of file +} diff --git a/examples/test_exclusions.php b/examples/test_exclusions.php index f4d1f979..ccfc38ed 100644 --- a/examples/test_exclusions.php +++ b/examples/test_exclusions.php @@ -1,8 +1,8 @@