def execute(self, fragment, pretty_format=True):
self.fragments = (self.fragments + "<STR_LIT:\n>" + fragment).lstrip()<EOL>try:<EOL><INDENT>line_parser.parseString(self.fragments)<EOL><DEDENT>except ParseException:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>self.last_query = self.fragments.strip()<EOL>self.fragments = "<STR_LIT>"<EOL>return super(FragmentEngine, self).execute(self.last_query, pretty_format)<EOL><DEDENT>return None<EOL>
Run or aggregate a query fragment

Concat the fragment to any stored fragments. If they form a complete
query, run it and return the result. If not, store them and return
None.