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, 25 Oct 2010 12:30:19 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.