摘要 |
PROBLEM TO BE SOLVED: To provide a data processing apparatus by which a data structure corresponding to an associative array can be easily implemented in a memory for programming by a programming language which cannot handle the associative array.SOLUTION: The data processing apparatus creates a pointer array in a first area upon receiving a declaration of an associative array, obtains a hash value of a first character string upon receiving a registration instruction while the pointer array exists, stores the first character string in a second area and registration data in a third area, stores specific information for specifying the second area and the third area in a first element of the pointer array designated by the hash value of the first character string, obtains a hash value of a second character string upon receiving a reference instruction in a state that the specific information is stored in the first element, uses the specific information in the first element to read the first character string when the hash value of the second character string is identical to the hash value of the first character string, uses the specific information to read registration data when the first character string is identical to the second character string, and then transmits the registration data to an execution unit. |