Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

deml::DEMLparser Class Reference

#include <demlparser.h>

List of all members.

Public Methods

 DEMLparser (fstream *)
tree< string > * parse (void)


Detailed Description

DEMLparser is a lightweight XML-ish parser. Given a proper fstream, this class constructs a post-order parse tree of STL strings.
Warning:
close tag checking is said to be "weak", that is, a close tag is assumed to be for the last opened tag and no error is raised. This is safe to assume according to XML specs.
Author:
Solstice

Definition at line 31 of file demlparser.h.


Constructor & Destructor Documentation

DEMLparser::DEMLparser fstream * stream
 

Constructs a DEMLparser with the given fstream

Definition at line 16 of file demlparser.cpp.


Member Function Documentation

tree< string > * DEMLparser::parse void
 

Parses the file given to it in the constructor. The parse order is post order.

Returns:
a tree of strings is post-order, null is the file is bad.

Definition at line 23 of file demlparser.cpp.


The documentation for this class was generated from the following files:
Generated at Sun Mar 3 20:34:56 2002 for Chroma by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001