Difference between revisions of "Owl Lua API"

From Owl
Jump to: navigation, search
(Created page with "= Owl Lua API = The Owl Lua API is a platform for building parsers in Owl. It consists of instantiable classes and static objects. Each response is processed through [http://...")
 
Line 2: Line 2:
  
 
The Owl Lua API is a platform for building parsers in Owl. It consists of instantiable classes and static objects. Each response is processed through [http://tidy.sourceforge.net/ HTML Tidy] so that all HTML returned is valid XHTML.
 
The Owl Lua API is a platform for building parsers in Owl. It consists of instantiable classes and static objects. Each response is processed through [http://tidy.sourceforge.net/ HTML Tidy] so that all HTML returned is valid XHTML.
 +
 +
== <code>regexp</code> Class ==
 +
 +
The <code>regexp</code> class exposes a POSIX implementation of regular expressions. The class's API is modeled after Qt 4.x's <code>QRegExp</code> implementation.
 +
 +
=== <code>regexp.new() ===
 +
 +
Initializes a new instance of the <code>regexp</code> class.
 +
 +
== <code>sgml</code> Class ==
 +
 +
The <code>sgml</code> class parses Html markup and builds an SGML DOM. '''Note:''' Parsing of even well formed documents can be slow for very large files.
 +
 +
== <code>utils</code> Class ==
 +
 +
The <code>utils</code> class contains static methods to make common routines in parsers more accessible.
 +
 +
'''Syntax'''
 +
<syntaxhighlight lang="lua"></syntaxhighlight>

Revision as of 09:01, 3 March 2013

Owl Lua API

The Owl Lua API is a platform for building parsers in Owl. It consists of instantiable classes and static objects. Each response is processed through HTML Tidy so that all HTML returned is valid XHTML.

regexp Class

The regexp class exposes a POSIX implementation of regular expressions. The class's API is modeled after Qt 4.x's QRegExp implementation.

regexp.new()

Initializes a new instance of the <code>regexp class.

sgml Class

The sgml class parses Html markup and builds an SGML DOM. Note: Parsing of even well formed documents can be slow for very large files.

utils Class

The utils class contains static methods to make common routines in parsers more accessible.

Syntax <syntaxhighlight lang="lua"></syntaxhighlight>