Module "HtmlParser.curry"

This module contains a very simple parser for HTML documents.

Author: Michael Hanus

Version: November 2006


 Exported names:

Functions:
parseHtmlString | readHtmlFile


 Summary of exported functions:

readHtmlFile  :: String -> IO [HtmlExp]  deterministic 
          Reads a file with HTML text and returns the corresponding HTML expressions.
parseHtmlString  :: String -> [HtmlExp]  deterministic 
          Transforms an HTML string into a list of HTML expressions.

 Imported modules:

Char
HTML
Prelude

 Exported datatypes:


 Exported functions:

readHtmlFile :: String -> IO [HtmlExp]  deterministic 

Reads a file with HTML text and returns the corresponding HTML expressions.

Example call:  (readHtmlFile file)

Parameters:
file - the name of a file containing HTML text
Returns:
a list of HTML expressions (if the file contains exactly one HTML document, this list should contain exactly one element)

parseHtmlString :: String -> [HtmlExp]  deterministic 

Transforms an HTML string into a list of HTML expressions. If the HTML string is a well structured document, the list of HTML expressions should contain exactly one element.



Generated by CurryDoc (Version 0.4.1 of June 7, 2007) at Jun 16 17:12:38 2009