Login   Register  
PHP Classes
elePHPant
Icontem

PHPCC

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Alejandro Siri
Name: Alejandro Siri is available for providing paid consulting. Contact Alejandro Siri .
Packages: 2 Browse all classes by Alejandro Siri Browse all classes by
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Age: 29
All time rank: 148563 in United Kingdom United Kingdom
Week rank: 1491 Down61 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This package can be used to parse code in any language given the definition of the language grammar, much like YACC or BISON for C.

It takes as parameter a definition of a language grammar as a string. Then the main class can parse and process source code in the defined language.

The main compiler class can assign callback functions that are invoked to process different types of elements of the language syntax.

  Classes of Alejandro Siri  >  PHPCC  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHPCC
Base name: phpcc
Description: Parse language string according to a given grammar
Version: 0.5
PHP version: 4.0
License: GNU General Public License (GPL)
All time users: 1025 users
All time rank: 3135
Week users: 1 user
Week rank: 2151 Up
 
  Groups   Rate classes User ratings   Applications   Related links   Files Files  

  Groups  
Group folder image Language Constructs to assist in the language control View top rated classes
Group folder image Code Generation Compilers and tools that generate code automatically View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
April 2007
Number 5

Prize: One copy of Delphi for PHP
Languages provide means to define how programs should behave using a lists of statements. Such statements must be composed with a given syntax.

If you want to process a program in a given language, you need to have a parser that extracts the statements that define the program and validate the statements syntax.

This class provides a generic solution to implement language parsers in PHP. It can be used to process programs with an user-defined syntax.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
PHPWebBuilder PHPWebBuilder Web Application Development Framework

  Files folder image Files  
File Role Description
Plain text file AltParser.class.php Class AltParser
Plain text file example.php Example An Example
Plain text file FunctionObject.class.php Class FunctionObject
Plain text file Grammar.class.php Class Grammar
Plain text file ListParser.class.php Class List Parser
Plain text file MaybeParser.class.php Class Maybe Parser
Plain text file MultiParser.class.php Class Multi Parser
Plain text file Parser.class.php Class Parser
Plain text file pgpcc-manual.txt Doc. A simple manual
Plain text file PHPCC.class.php Class PHPCC
Plain text file PHPGrammar.class.php Class PHP Grammar
Plain text file SeqParser.class.php Class Seq Parser
Plain text file SubParser.class.php Class Sub Parser
Accessible without login Plain text file Symbol.class.php Class Symbol

Download all files: phpcc.tar.gz phpcc.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.