PHP Classes
Icontem

Class: FSM Parser


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dmitry A. Kirilin  >  FSM Parser  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: FSM Parser Support forum
Base name: fsmparser
Description: Generic parser using finite state machine
Version: -
Required PHP version: -
License: Freely Distributable
All time users: 475 users
All time rank: 3699
Week users: 2 users
Week rank: 3092
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Related links   Files Files  

Author

Picture of Dmitry A. Kirilin
Name: Dmitry A. Kirilin <e-mail contact>
Published packages: 4 Browse this author's classes Browse this author's classes
Country: Russian Federation Russian Federation - PHP jobs in Russian Federation
Home page: http://new-m0ray.livejournal.com/
Age: 30
All time rank: 804
Week rank: 1066

Groups

Group folder image Text processing Manipulating and validating text data View top rated classes

Detailed description

This class can be used to parse or preprocess any markup or programming language using a finite state machine.

First it is necessary to define each state transition by specifying a regular expression to determine the format of the text to expect, the code to execute when the expected text is found, the next states of the transaction to when the expected text is found or is not found.
FSM program can be loaded from file or string.

Then the state machine parse function starts parsing a given text string by executing the previsouly defined states and transitions.

A simple XML parser is supplied as an example.

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
FSM Chat Dialog robot using FSM

Files

File Role Description
Plain text file example.xml Data Example XML file for parser testing
Plain text file fsmparserclass.inc.php Class Class source
Plain text file README Doc. Some documentation
Plain text file xmlparser.php Example Simple XML parser based on this class
Plain text file xmlparser_loadfsm.fsm Data FSM program for XML parser
Plain text file xmlparser_loadfsm.php Example XML parser with external FSM program
Download all files: fsmparser.tar.gz fsmparser.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products