承接 krakjoe/phathom-ext 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

krakjoe/phathom-ext

Composer 安装命令:

pie install krakjoe/phathom-ext

包简介

A multi-engine parser framework, for phathoming texty things.

README 文档

README

This extension re-implements the internal API of pharos\phathom\Earley, mirroring the userland implementation but removing the cost of object allocation (in this namespace).

The following classes are implemented (only):

  • pharos\phathom\Earley\Chart
  • pharos\phathom\Earley\Evaluator
  • pharos\phathom\GLR\Chart
  • pharos\phathom\GLR\Evaluator

When the extension is loaded, they will usurp the function of the userland implementations transparently.

This extension is intended to be a faithful mirror; A competent PHP programmer ought to be able to navigate this C code if they are familiar with the PHP implementation and they like to fix or add a thing.

Install

To configure the extension for normal installation

./configure

Run a normal build:

make

Install:

make install

Testing

To configure the extension with coverage:

./configure --with-phathom-coverage

Run a normal build:

make

To run coverage collection with lcov over phpunit tests:

TEST_PHP_EXECUTABLE=/usr/bin/php make phathom-test-coverage-html

Will generate a coverage directory with html and coverage.info with data.

Note: the coverage recipe from Makefile.frag does not require installation of the extension

Notes

It's important that the extension and PHP code are kept in sync; The extension treats the layout of PHP objects as stable ABI (ie, the properties must not change order).

Note that, PHP objects do have a stable ABI with regard to the property layout, since NG.

!WIP!

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: C

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固