class_docstr: Class to parse header files.
  
  It can deal with gl2.h and webgl.idl,
  as well as some desktop OpenGL header files. It produces a list of
  ConstantDefinition objects and FunctionDefinition objects, which can
  be accessed via a dict.
class_docstr_tok: ["Class","to","parse","header","files",".","It","can","deal","with","gl2.h","and","webgl.idl",",","as","well","as","some","desktop","OpenGL","header","files",".","It","produces","a","list","of","ConstantDefinition","objects","and","FunctionDefinition","objects",",","which","can","be","accessed","via","a","dict","."]
code: def _parse_constants_and_functions_from_file(self):
      line_gen = self._get_nonblank_lines()
      for line in line_gen:
          if line.startswith(("#define", "const GLenum")):
              const_def = ConstantDefinition(line)
              const_def.parse_line(self._constant_values)
              self._append_definition(const_def)
          elif "(" in line:
              while ")" not in line:
                  line += next(line_gen)
              if line.endswith(");"):
                  func_def = FunctionDefinition(line)
                  func_def.parse_line()
                  self._append_definition(func_def)
  
imports: import os
label_desc: Use image node_id 3 for calling the Parser obj's underlying member method code with example usage: obj._parse_constants_and_functions_from_file() without return types