'Execute the parse expression with the given string.
This is the main interface to the client code, once the complete
expression has been built.
Note: parseString implicitly calls expandtabs() on the input string,
in order to report proper column numbers in parse actions.
If the input string contains tabs and
the grammar uses parse actions that use the loc argument to index into the
string being parsed, you can ensure you have a consistent view of the input
string by:
- calling parseWithTabs on your grammar before calling parseString
(see L{I{parseWithTabs}<parseWithTabs>})
- define your parse action using the full (s,loc,toks) signature, and
reference the input string using the parse action\'s s argument
- explicitly expand the tabs in your input string before calling
parseString'

def parseString(self, instring):

    ParserElement.resetCache()
    if (not self.streamlined):
        self.streamline()
    for e in self.ignoreExprs:
        e.streamline()
    if self.keepTabs:
        (loc, tokens) = self._parse(instring, 0)
    else:
        (loc, tokens) = self._parse(instring.expandtabs(), 0)
    return tokens
