def parse(self, content):
        # Read and parse the lines of the file
        lines = content.splitlines()
        if not lines:
            return
        num_lines = len(lines)
        lines = list(zip(list(range(num_lines)), lines))
        self.sourcecode = lines[:]

        if __debug__:
            trace('Parser: parsing %d lines' % num_lines)

        # Strip all comments
        self.strip_comments(lines)

        # Execute directives
        self.execute_directives()

        # Get object from the first level
        objects, remaining_lines = self.parse_level(0, lines)

        # Precompile rules tree
        for rule in objects:
            rule.precompile()

        # After parsing, there should be no remaining lines
        # or there's an error we did not catch earlier.
        if remaining_lines:
            ln, content = remaining_lines[0]
            raise ParserException(self, ln, 'Invalid data (not parsed)')
Test ConfigureSystemProxy success.
dataset/ETHPy150Open kivy/kivy/kivy/lang/parser.py/Parser.parse--crossover with--dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/systemconfig_test.py/SysconfigModuleTest.testConfigureSystemProxy