Method and system for generating a parser and parsing complex data
First Claim
1. A system configured to generate a parser, the system comprising:
- a memory device configured to store a set of instructions; and
one or more processors configured to execute the set of instructions to perform the following operations;
receive a parser definition as an input to a parser generator, the parser definition including one or more handler definitions including a handler action definition; and
generate the parser using the parser definition, wherein the parser comprises a parsing pipeline comprising two or more handlers based on the one or more handler definitions,wherein at least one handler definition of the one or more handler definitions includes a handler listener definition that comprises a definition for an expression used for evaluating an input string to the parsing pipeline, andwherein the one or more handler action definitions collectively comprise one or more definitions for one or more actions to be performed based on the evaluation, the one or more actions include generating a first string based on the input string and inputting the first string, regeneratively, to the parsing pipeline.
8 Assignments
0 Petitions
Accused Products
Abstract
Computer-implemented systems and methods are disclosed for constructing a parser that parses complex data. In some embodiments, a method is provided for receiving a parser definition as an input to a parser generator and generating a parser at least in part from the parser definition. In some embodiments, the generated parser comprises two or more handlers forming a processing pipeline. In some embodiments, the parser receives as input a first string into the processing pipeline. In some embodiments, the parser generates a second string by a first handler and inputs the second string regeneratively into the parsing pipeline, if the first string matches an expression specified for the first handler in the parser definition.
-
Citations
17 Claims
-
1. A system configured to generate a parser, the system comprising:
-
a memory device configured to store a set of instructions; and one or more processors configured to execute the set of instructions to perform the following operations; receive a parser definition as an input to a parser generator, the parser definition including one or more handler definitions including a handler action definition; and generate the parser using the parser definition, wherein the parser comprises a parsing pipeline comprising two or more handlers based on the one or more handler definitions, wherein at least one handler definition of the one or more handler definitions includes a handler listener definition that comprises a definition for an expression used for evaluating an input string to the parsing pipeline, and wherein the one or more handler action definitions collectively comprise one or more definitions for one or more actions to be performed based on the evaluation, the one or more actions include generating a first string based on the input string and inputting the first string, regeneratively, to the parsing pipeline. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method for generating a parser, the method being performed by one or more processors and comprising:
-
receiving a parser definition as an input to a parser generator, the parser definition including one or more handler definitions including a handler action definition; and generating, using one or more processors, a parser using the parser definition, wherein the parser comprises a parsing pipeline comprising two or more handlers based on the one or more handler definitions, wherein at least one handler definition of the one or more handler definitions includes a handler listener definition that comprises a definition for an expression used for evaluating an input string to the parsing pipeline, and wherein the one or more handler action definitions collectively comprise one or more definitions for one or more actions to be performed based on the evaluation, the one or more actions include generating a first string based on the input string and inputting the first string, regeneratively, to the parsing pipeline. - View Dependent Claims (7, 8, 9, 10, 11, 12)
-
-
13. A non-transitory computer readable medium that stores a set of instructions that are executable by at least one processor of an electronic device to cause the electronic device to perform a method for generating a parser, the method comprising:
-
receiving a parser definition as an input to a parser generator, the parser definition including one or more handler definitions including a handler action definition; and generating a parser using the parser definition, wherein the parser comprises a parsing pipeline comprising two or more handlers based on the one or more handler definitions, wherein at least one handler definition of the one or more handler definitions includes a handler listener definition that comprises a definition for an expression used for evaluating an input string to the parsing pipeline, and wherein the one or more handler action definitions collectively comprise one or more definitions for one or more actions to be performed based on the evaluation, the one or more actions include generating a first string based on the input string and inputting the first string, regeneratively, to the parsing pipeline. - View Dependent Claims (14, 15, 16, 17)
-
Specification