Patent ID: 7984430

Claim:
An apparatus for a parser framework using a markup language, the apparatus for the parser framework including one or more memories, the one or more memories comprising: a universal parser module configured to store a data format description that describes how to parse a data file using the markup language and parse the data file using the data format description; and a callback function module configured to deliver into an application program a result obtained by parsing the data file according to the data format description, wherein the data format description comprises: a format identifier representing a format of written data; a field reader reading a desired number of bytes from the data file and explicating the number of the bytes; a field verifier comparing the bytes with a designated item, performing the parsing when the bytes coincide with the designated item as a result of the comparison, and stopping the parsing when the bytes do not coincide with the designated item as a result of the comparison; a variant designating the item as a variant item block when any item among various items needs to be performed selectively according to conditions; a candidate, when a specific condition is achieved, designating a work block to be performed and explicating a condition value and a result value satisfying the specific condition; a loop designating a work block for repeating the same work and designating the frequency of repetition as EOF (End Of File), a number or a variable; a sub-block used for internal identification when designating a specific work as one of work blocks; a sub-routine providing a function to perform a work defined in the data format description at present location; and an evaluation used for acquiring a result value of a specific operation in the data format description.