1460930356-bc46c2b4-befd-4c95-a5f3-011b28fe9662

1. A method for parsing structured data with plural branches comprising the steps of:
receiving input data with the plural branches in a first computer language;
generating a plurality of tokens according to the input data; and
building a context and processing a built context in units of the plural branches by using a grammar syntax comprising a set of rules, wherein the steps of receiving, generating and building occur in parallel across at least a portion of the input data;
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

if the token is unallowable recovering the unallowable token by identifying a suitable context for the unallowable token in which context the token is allowable, and applying the token in the identified suitable context.
2. A method according to claim 1, wherein the identifying of the suitable context comprises searching for a least different allowable context for the token using the grammar syntax.
3. A method according to claim 2, wherein the applying the token comprises modifying the context to be equal to the least different allowable context.
4. A method according to claim 2, wherein the searching for the least different allowable context attempts to generate a new context step according to a rule specific to the unallowable token to complement the context so that the unallowable token becomes allowable.
5. A method according to claim 1, wherein the method first attempts to complement the context by adding such a context step, which is allowable, according to the syntax, both to the preceding context step and to the unallowable context step.
6. A method according to claim 5, wherein, if such complementing fails, a backwards proceeding searching for the suitable context is performed.
7. A method according to claim 1, wherein at least one of a rule specific for the generic syntax of the first computer language and a type of token is used for determining whether a token is allowable in a context.
8. A method according to claim 1, wherein the method comprises a further step of dynamically switching to use another grammar syntax to adapt to a different language or to a different dialect of the language.
9. A parser comprising:
a processor coupled to a memory for storing parser software, said processor comprising an input for receiving input data with plural branches in a first computer language; and said parser software comprising:
a tokenizer for generating a plurality of tokens according to the input data;
a context builder for building a context and processing a built context in units of the plural branches by using a grammar syntax comprising a set of rules, wherein receiving input, generating a plurality of tokens and building a context occur in parallel across at least a portion of the input data;
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; and
if the token is unallowable an identifying block for identifying for the unallowable token a suitable context in which the token is allowable;
wherein the tokenizer is configured to apply the token in the identified suitable context.
10. A computer program product, embodied on a computer readable memory, for controlling a parser comprising:
parser executable computer program code to enable the parser to receive input data with plural branches 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 and process a built context in units of the plural branches by using a grammar syntax comprising a set of rules, wherein receiving input data, generating a plurality of tokens and building a context occur in parallel across at least a portion of the input data;
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; and
parser executable computer program code to enable the parser to identify for an unallowable token a suitable context in which the token is allowable and 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 with plural branches 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 and processing a built context in units of the plural branches by using a grammar syntax comprising a set of rules, wherein receiving input data, generating a plurality of tokens and building a context occur in parallel across at least a portion of the input data;
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; and
an identifying block for identifying for an unallowable token a suitable context in which the token is allowable;
wherein the processor is configured to apply the token in the identified suitable context.
12. A processing unit according to claim 11, comprising a device selected from a group consisting of: a translator, a gateway, a mobile station and a web server.
13. A system comprising a mobile telecommunications network and a gateway having a parser that comprises:
an input for receiving input data with plural branches 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 and processing a built context in units of the plural branches by using a grammar syntax comprising a set of rules, wherein receiving input data, generating a plurality of tokens and building a context occur in parallel across at least a portion of the input data;
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; and
an identifying block for identifying for an unallowable token a suitable context in which the token is allowable;
wherein the processor is configured to apply the token in the identified suitable context.

The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.

What is claimed is:

1. An ink cartridge for use with a recording apparatus, comprising:
an ink pack which is filled with ink and is formed into a flattened bag shape from flexible material;
a case housing the ink pack and constituting an outer shell of the cartridge; and
a contact prevention member which is provided within the ink pack for preventing close contact between interior surfaces of the ink pack, caused due to a reduction of ink in the ink pack, thereby ensuring an ink flow passage.
2. The ink cartridge according to claim 1, wherein the case is hermetically formed, and air pressure can be applied from a recording apparatus to an interior of the case to pressurize the ink pack when the ink cartridge is loaded to the recording apparatus.
3. The ink cartridge according to claim 1, wherein the contact prevention member is formed from genuine material.
4. The ink cartridge according to any one of claims 1 through 3, wherein the ink cartridge is loaded to the recording apparatus so that surfaces of the flattened ink pack are oriented in a vertical direction, and the contact prevention member is located at least partially in a lower position with respect to a direction of gravity.
5. The ink cartridge according to claim 4, wherein the contact prevention member is formed by a single rod member.
6. The ink cartridge according to claim 5, wherein the contact prevention member formed by the single rod member is fixed on one interior surface of flexible material constituting the ink pack, by heat welding.
7. The ink cartridge according to claim 4, wherein the contact prevention member is formed by a single rod member bent into a substantially rectangular shape, and arranged the rod along four sides of the flattened ink pack.
8. An ink cartridge for use with a recording apparatus, comprising:
an ink pack which is filled with ink and is formed into a flattened bag shape from flexible material; and
a case housing the ink pack and constituting an outer shell of the cartridge;
wherein the ink cartridge is loaded to the recording apparatus so that surfaces of the flattened ink pack are oriented in a substantially vertical state, and
wherein an ink flow passages bulging outwardly of the ink pack is formed on at least one of interior surfaces of flexible material constituting the ink pack to extend along a gravity direction lower side of the ink pack.
9. The ink cartridge according to claim 8, wherein the ink flow passage is formed by press-forming flexible material constituting the ink pack.
10. The ink cartridge according to claim 8, wherein an end of the ink flow passage is elongated so as to reach a vicinity of an ink outlet port.
11. The ink cartridge according to any one of claims 8 through 10, wherein the case is formed hermetically, and air pressure can be applied from a recording apparatus to an interior of the case to pressurize the ink pack when the ink cartridge is loaded to the recording apparatus.
12. An ink cartridge for use with a recording apparatus, comprising:
an ink pack which is filled with ink and is formed into a flattened bag shape from flexible material; and
a case housing the ink pack and constituting an outer shell of the cartridge;
wherein the ink cartridge is loaded to the recording apparatus so that surfaces of the flattened ink pack are oriented in a substantially horizontal state, and
wherein ink flow passages bulging outwardly of the ink pack are formed on at least one of interior surfaces of flexible material constituting the ink pack to extend along respective sides of the ink pack perpendicular to a side in which an ink outlet port is formed.
13. The ink cartridge according to claim 12, wherein the ink flow passages are formed by press-forming flexible material constituting the ink pack.
14. The ink cartridge according to claim 12, wherein an ink outlet port side end of each ink flow passage is extended to reach a vicinity of the ink outlet port.
15. The ink cartridge according to any one of claims 12 through 14, wherein the case is formed hermetically, and air pressure can be applied from a recording apparatus to an interior of the case to pressurize the ink pack when the ink cartridge is loaded to the recording apparatus.
16. A flexible ink pack having opposing interior surfaces defining a substantially rectangular ink storage chamber, the flexible ink pack comprising:
a plug member provided to a shorter side of the substantially rectangular ink storage chamber; and
a protrusion andor recess provided to at least one of the interior surfaces of the ink pack, and elongated substantially along a longer side of the substantially rectangular ink storage chamber.
17. The flexible ink pack according to claim 16, wherein the protrusion includes a rod member attached to the one interior surface.
18. The flexible ink pack according to claim 16, wherein the recess is formed as a consequence of plastically deforming a part of a flexible film defining the one interior surface.
19. The flexible ink pack according to claim 16, wherein the protrusion is elongated linearly along the longer side.
20. The flexible ink pack according to claim 16, wherein the recess is elongated linearly along the longer side.
21. The flexible ink pack according to claim 16, wherein the protrusion is substantially rectangular.
22. The flexible ink pack according to claim 16, wherein the recess is substantially U-shaped.
23. The flexible ink pack according to claim 16, wherein the protrusion has an inclined portion angled with respect to both the shorter and longer sides.
24. The flexible ink pack according to claim 16, wherein the recess has an inclined portion angled with respect to both the shorter and longer sides.