PEG Parser Combinator for PHP5
PHP Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
test
README.markdown
composer.json
setup.sh

README.markdown

PHPPEG

PEG Parser Combinator for PHP5.

Install

Use composer to install this library.

$ mkdir foobar && cd foobar
$ echo '{"require": {"phppeg/phppeg": "*"}}' >  composer.json
$ composer install

And include "vendor/autoload.php" to setup auto-loading for PHPPEG in your code.

<?php
include_once __DIR__ . '/vendor/autoload.php';

How to run tests and examples

Execute setup.sh after git-clone to setup auto-loading.

$ git clone https://github.com/anatoo/PHPPEG.git
$ cd PHPPEG
$ ./setup.sh

Run all tests:

$ php test/t/testall.php

Run examples:

$ php examples/example01.php