Login   Register  
PHP Classes
elePHPant
Icontem

File: xmlparser_loadfsm.fsm

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dmitry A. Kirilin  >  FSM Parser  >  xmlparser_loadfsm.fsm  >  Download  
File: xmlparser_loadfsm.fsm
Role: Auxiliary data
Content type: text/plain
Description: FSM program for XML parser
Class: FSM Parser
Generic parser using finite state machine
Author: By
Last change:
Date: 8 years ago
Size: 328 bytes
 

Contents

Class file image Download
CDATA /</ TAG_OPEN

CDATA /<\/\w+\s*>/
	return ClosingTag($STRING);

CDATA /./s
	echo $STRING;

TAG_OPEN /[\w_]+/ IN_TAG
	return BeginTag($STRING);

IN_TAG /[\w_]+/
	return GetSimpleAttr($STRING);

IN_TAG /[\w_]+=[\'"][^\'"]*[\'"]/
	return GetValueAttr($STRING);

IN_TAG /\/?>/ CDATA
	return EndTag($STRING);