Patent ID: 8700680
Filing Date: 2014-04-15
Classification: G06F

Abstract:
1. A decoder compiler device that generates an EXI (Efficient XML (Extensible Markup Language) Interchange) decoder, the EXI decoder decoding an EXI stream which is a sequence of a plurality of EXI event codes and a value, the decoder compiler device comprising: a first reading unit configured to read mapping information that maps a point in an XML document structure defined by an XML schema to a name of a variable, the XML document structure including a plurality of elements; a second reading unit configured to read an EXI grammar form including a plurality of grammars each defining a relationship among an event representative of the element in the XML document structure, an EXI event code, and a next grammar for use; a grammar selecting unit configured to sequentially select grammars in the EXI grammar form from a start grammar such that the grammars are traced in sequence; an update determining unit configured to update a grammar stack which identifies a current position in the XML document structure each time the grammar is selected and determine whether an updated grammar stack indicates the point shown in the mapping information; a skip function setting unit configured to set a skip function when the updated grammar stack does not indicate the point in the mapping information, the skip function skipping a value in the EXI stream that corresponds to the position indicated by the grammar stack when the skip function is executed; a read function setting unit configured to set a read function when the updated grammar stack indicates the point in the mapping information, the read function reading a value in the EXI stream that corresponds to the position indicated by the grammar stack and providing the value to a variable mapped to the point when the read function is executed; and a code composer configured to generate an EXI decoder which includes the skip function and the read function set for the grammars.