Module yeanpypa :: Class ParseResult
[show private | hide private]
[frames | no frames]

Class ParseResult


The class representing the result of a parser run. An object of this class is returned by the parse() function. The ParseResult contains information about whether the parsing fully consumed the string and a list of token generated by the parser.
Method Summary
  __init__(self, input_reader, token)
Initialize the result object with the input reader and the token list.
  full(self)
Check whether the input was fully consumed.
  getTokens(self)
Return the list of token generated by the parser.

Method Details

__init__(self, input_reader, token)
(Constructor)

Initialize the result object with the input reader and the token list.
Parameters:
input_reader - The InputReader used by the parser.
           (type=InputReader)
token - The list of tokens generated by the parser.
           (type=list)

full(self)

Check whether the input was fully consumed.

@return True if the input was fully consumed, False otherwise.

getTokens(self)

Return the list of token generated by the parser.
Returns:
A list of token generated by the parser.

Generated by Epydoc 2.1 on Sat Feb 10 16:11:43 2007 http://epydoc.sf.net