'Parses C code and returns an AST.
text:
A string containing the C source code
filename:
Name of the file being parsed (for meaningful
error messages)
debuglevel:
Debug level to yacc'

def parse(self, text, filename='', debuglevel=0):

    self.clex.filename = filename
    self.clex.reset_lineno()
    self._scope_stack = [dict()]
    self._last_yielded_token = None
    return self.cparser.parse(input=text, lexer=self.clex, debug=debuglevel)
