def parseString( self, instring, parseAll=False ):
ParserElement.resetCache()<EOL>if not self.streamlined:<EOL><INDENT>self.streamline()<EOL><DEDENT>for e in self.ignoreExprs:<EOL><INDENT>e.streamline()<EOL><DEDENT>if not self.keepTabs:<EOL><INDENT>instring = instring.expandtabs()<EOL><DEDENT>try:<EOL><INDENT>loc, tokens = self._parse( instring, <NUM_LIT:0> )<EOL>if parseAll:<EOL><INDENT>loc = self.preParse( instring, loc )<EOL>se = Empty() + StringEnd()<EOL>se._parse( instring, loc )<EOL><DEDENT><DEDENT>except ParseBaseException as exc:<EOL><INDENT>if ParserElement.verbose_stacktrace:<EOL><INDENT>raise<EOL><DEDENT>else:<EOL><INDENT>raise exc<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return tokens<EOL><DEDENT>
Execute the parse expression with the given string.
           This is the main interface to the client code, once the complete
           expression has been built.

           If you want the grammar to require that the entire input string be
           successfully parsed, then set C{parseAll} to True (equivalent to ending
           the grammar with C{L{StringEnd()}}).

           Note: C{parseString} implicitly calls C{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 C{loc} argument to index into the
           string being parsed, you can ensure you have a consistent view of the input
           string by:
            - calling C{parseWithTabs} on your grammar before calling C{parseString}
              (see L{I{parseWithTabs}<parseWithTabs>})
            - define your parse action using the full C{(s,loc,toks)} signature, and
              reference the input string using the parse action's C{s} argument
            - explictly expand the tabs in your input string before calling
              C{parseString}