php-c-parser icon indicating copy to clipboard operation
php-c-parser copied to clipboard

A C parser built in and for PHP (yes, it's a bad idea)...

Results 4 php-c-parser issues
Sort by recently updated
recently updated
newest added

Even though there is no support for * include_next * pragma currently, it would be nice to add at least support for them in skipIf to "work around" them. Maybe...

Parsing [rdkafka.h](https://github.com/edenhill/librdkafka/blob/v1.0.0/src/rdkafka.h) gives `PHP Warning: Only arrays and Traversables can be unpacked in /app/vendor/ircmaxell/php-c-parser/lib/Context.php on line 140`: https://github.com/ircmaxell/php-c-parser/blob/8dbb1e48655f10d3a996e4a330135c2f294ddce4/lib/Context.php#L140 You may replay this with: ``` --TEST-- Test bug --FILE-- #ifndef TEST...

Currently, if `#pragma error` is encountered, an error will be raised since `#pragma` isn't supported. But if #7 adds support for `#pragma once` and ignores other pragmas, we'll need to...

enhancement
help wanted
good first issue

``` PHPCParser\Error: Syntax error, unexpected IDENTIFIER(__gwchar_t), expecting ',' or ';' on line 393 in /home/parallels/PhpstormProjects/pphp/vendor/ircmaxell/php-c-parser/lib/ParserAbstract.php:235 Stack trace: #0 /home/parallels/PhpstormProjects/pphp/vendor/ircmaxell/php-c-parser/lib/ParserAbstract.php(104): PHPCParser\ParserAbstract->doParse() #1 /home/parallels/PhpstormProjects/pphp/vendor/ircmaxell/php-c-parser/lib/CParser.php(23): PHPCParser\ParserAbstract->parse(Array, Object(PHPCParser\Context)) #2 /home/parallels/PhpstormProjects/pphp/vendor/ircmaxell/ffime/lib/FFIMe.php(101): PHPCParser\CParser->parse('llvm-c/Core.h', Object(PHPCParser\Context)) #3 /home/parallels/PhpstormProjects/pphp/tool/GenerateLLVMFFiCode.php(14):...