Registry / utility / nikic-phlexy

nikic-phlexy

JSON →
library0.2phppackagistunverified

Lexing experiments in PHP

composer require nikic/phlexy
INSTALL
IMPORT
SIG · NIKIC-PHLEXY
N
nikic-phlexy
utilityphpv0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Stateful
use Phlexy\Lexer\Stateful;

Create a simple lexer

use Phlexy\Lexer\Stateful; $lexer = new Stateful([ 'NUMBER' => '/\d+/', 'STRING' => '/"[^"]*"/', ]); $tokens = $lexer->lex('123 "hello"');
Debug
Known issues
gotchaExperimental package, not production-ready
fix
Use for learning or prototyping only
affects: >=0.1.0
Upgrade
Version history
0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
nikic-phlexy — pip install nikic-phlexy · libregistry