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

PHP_LexerGenerator Manual

Introduction to PHP_LexerGenerator

Authors:
by Gregory Beaver
cellog@php.net

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 http://pear.chiaraquartet.net/PHP_LexerGenerator/PHP_LexerGenerator-0.2.1.tgz. Direct download link here: http://pear.chiaraquartet.net/PHP_LexerGenerator/PHP_LexerGenerator-0.2.1.tgz


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