| Home | Trees | Indices | Help |
|
|---|
|
|
This class will try and parse data into a data model. This process will try and best-fit data based on performing look aheads with fit-ratings.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
_tabLevel = 0
|
|||
|
|||
Crack data based on template. Set values into data tree. Will throw an exception (NeedMoreData) if additional data is required. The exception contains the minimum amount of additional data needed before trying to re-crack the data. |
Try and determine size of a node. Rating of: 1 - Exact 2 - Exact, but not everything 3 - Not complete to block yet 4 - Nadda |
Get the object indicated by ref. Currently the object must have been defined prior to this point in the XML |
Look ahead one step and get the next rating. Looking ahead from a current node is more complex than it might first seem. For example, we might be the 2nd to last element in a block that is part of a larger block (but not the last element). We will need to be tricky inorder to properly look ahead at the rest of the document. |
Locate the next node. 1. Do we have a .nextSibling? 2. Does are parent have .nextSibling? ... Need to also support escaping Choice blocks! |
Returns the rating and string. The rating is how well we matched. Rating: 1 - BEST If our default matched and look ahead is 1 2 - GOOD If our default matched and look ahead is 2 3 - OK If our look ahead is 1 or 2 4 - MPH If look ahead is 3 or 4 |
Handle Number. Return (rating, newpos, value) in tuple. Rating: 1 - BEST If our default matched and look ahead is 1 2 - GOOD If our default matched and look ahead is 2 3 - OK If our look ahead is 1 or 2 4 - MPH If look ahead is 3 or 4 |
Returns the rating and string. The rating is how well we matched. Rating: 1 - BEST If our default matched and look ahead is 1 2 - GOOD If our default matched and look ahead is 2 3 - OK If our look ahead is 1 or 2 4 - MPH If look ahead is 3 or 4 |
Returns the rating and string. The rating is how well we matched. Rating: 1 - BEST If our default matched and look ahead is 1 2 - GOOD If our default matched and look ahead is 2 3 - OK If our look ahead is 1 or 2 4 - MPH If look ahead is 3 or 4 |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Aug 16 12:17:03 2008 | http://epydoc.sourceforge.net |