(self, src)
Updates self.strings_dict.
Updates self.strings_dict.
Updates self . strings_dict .
def parse_global_strings(self, src):
    """Updates self.strings_dict."""
    parser = header_parsing.MJAPI_STRING_ARRAY
    for token, _, _ in parser.scanString(src):
      name = codegen_util.mangle_varname(token.name)
      shape = self.get_shape_tuple(token.dims)
      self.strings_dict[name] = c_declarations.StaticStringArray(
          name, shape, symbol_name=token.name)
def parse_global_strings ( self , src ) : parser = header_parsing . MJAPI_STRING_ARRAY for token , _ , _ in parser . scanString ( src ) : name = codegen_util . mangle_varname ( token . name ) shape = self . get_shape_tuple ( token . dims ) self . strings_dict [ name ] = c_declarations . StaticStringArray ( name , shape , symbol_name = token . name )