Parsing structured data
First Claim
1. A method for parsing structured data comprising the steps of:
- receiving input data in a first computer language;
generating a plurality of tokens according to the input data;
building a context by using a grammar syntax comprising a set of rules, the context comprising a plurality of context steps in the form of at least one or more chains of context steps, the step of building the context comprising the sub-steps of;
detecting if according to the grammar syntax a token is allowable in the context; and
if the token is allowable, creating a new context step corresponding to the token;
characterised in that the method comprises the further steps for recovering an unallowable token;
identifying a suitable context for the unallowable token in which context the token is allowable; and
applying the token in the identified suitable context.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for parsing structured data has the steps of: receiving input data in a first computer language; generating a plurality of tokens according to the input data; building a context by using a grammar syntax comprising a set of rules, the context comprising a plurality of context steps in the form of at least one or more chains of context steps, the step of building the context comprising the sub-steps of: detecting if according to the grammar syntax a token is allowable in the context; and if the token is allowable, creating a new context step corresponding to the token, and the further steps for recovering an unallowable token: identifying a suitable context for the unallowable token in which context the token is allowable; and applying the token in the identified suitable context.
33 Citations
13 Claims
-
1. A method for parsing structured data comprising the steps of:
-
receiving input data in a first computer language;
generating a plurality of tokens according to the input data;
building a context by using a grammar syntax comprising a set of rules, the context comprising a plurality of context steps in the form of at least one or more chains of context steps, the step of building the context comprising the sub-steps of;
detecting if according to the grammar syntax a token is allowable in the context; and
if the token is allowable, creating a new context step corresponding to the token;
characterised in that the method comprises the further steps for recovering an unallowable token;
identifying a suitable context for the unallowable token in which context the token is allowable; and
applying the token in the identified suitable context. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A parser comprising:
-
an input for receiving input data in a first computer language;
a tokeniser for generating a plurality of tokens according to the input data;
a context builder for building a context by using a grammar syntax comprising a set of rules, the context comprising a plurality of context steps in the form of at least one chain of context steps, the context builder being configured to;
detect if according to the grammar syntax a token is allowable in the context; and
if the token is allowable, to create a new context step corresponding to the token;
characterised in that the parser further comprises for recovering an unallowable token;
an identifying block for identifying for the unallowable token a suitable context in which the token is allowable; and
the tokeniser is configured to apply the token in the identified suitable context.
-
-
10. A computer program product for controlling a parser comprising:
-
parser executable computer program code to enable the parser to receive input data in a first computer language;
parser executable computer program code to enable the parser to generate a plurality of tokens according to the input data;
parser executable computer program code to enable the parser to build a context by using a grammar syntax comprising a set of rules, the context comprising a plurality of context steps in the form of at least one chain of context steps, the code being configured to;
detect if according to the grammar syntax a token is allowable in the context; and
if the token is allowable, to create a new context step corresponding to the token;
characterised in that the computer program product further comprises for recovering an unallowable token;
parser executable computer program code to enable the parser to identify for the unallowable token a suitable context in which the token is allowable; and
parser executable computer program code to enable the parser to apply the token in the identified suitable context.
-
-
11. A processing unit having a parser comprising:
-
an input for receiving input data in a first computer language;
a processor for generating a plurality of tokens according to the input data;
a context builder for building a context by using a grammar syntax comprising a set of rules, the context comprising a plurality of context steps in the form of at least one chain of context steps, configured to;
detect if according to the grammar syntax a token is allowable in the context; and
if the token is allowable, to create a new context step corresponding to the token;
characterised in that the parser further comprises for recovering an unallowable token;
identifying block for identifying for the unallowable token a suitable context in which the token is allowable; and
the processor is configured to apply the token in the identified suitable context. - View Dependent Claims (12)
-
-
13. A system comprising a mobile telecommunications network and a gateway having a parser that comprises:
-
an input for receiving input data in a first computer language;
a processor for generating a plurality of tokens according to the input data;
a context builder for building a context by using a grammar syntax comprising a set of rules, the context comprising a plurality of context steps in the form of at least one chain of context steps, configured to;
detect if according to the grammar syntax a token is allowable in the context; and
if the token is allowable, to create a new context step corresponding to the token;
characterised in that the parser further comprises for recovering an unallowable token;
an identifying block for identifying for the unallowable token a suitable context in which the token is allowable; and
the processor is configured to apply the token in the identified suitable context.
-
Specification