[ class tree: PHP_LexerGenerator ] [ index: PHP_LexerGenerator ] [ all elements ]

PHP_LexerGenerator Manual

Introduction to PHP_LexerGenerator

by Gregory Beaver

Using PHP_LexerGenerator

PHP_LexerGenerator is a lexer generator for PHP 5. Using PHP_LexerGenerator is simple:

  1. <?php
  2. require_once 'PHP/LexerGenerator.php';
  3. $a = new PHP_LexerGenerator('/path/to/LexerSource.plex');
  4. ?>

This will create a file named /path/to/LexerSource.php containing the source code.

Information on the format of plex files is found in the documentation for the PHP_LexerGenerator class.

Until accepted, the package can be installed with pear install Direct download link here:

Documentation generated on Mon, 11 Mar 2019 15:40:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.