Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

datto/php-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parser for PHP

Specifies the rules that define your context-free grammar, and then gain the ability to parse any text source. The output is an abstract syntax tree ready for semantic analysis.

Features

  • Powerful recursive-descent parser
  • 100% unit-test coverage
  • Ultra-lightweight (just one small file)

Requirements

  • PHP >= 5.3

License

This package is released under an open-source license: LGPL-3.0

Installation

If you're using Composer, you can use this package (datto/php-parser) by inserting a line into the "require" section of your "composer.json" file:

        "datto/php-parser": "~3.0"

Unit tests

You can run the suite of unit tests from the project directory like this:

./vendor/bin/phpunit

Author

Spencer Mortensen

About

Define and parse a context-free grammar

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages