发明名称 |
Method and system for generating a parser and parsing complex data |
摘要 |
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. |
申请公布号 |
US9495353(B2) |
申请公布日期 |
2016.11.15 |
申请号 |
US201414526066 |
申请日期 |
2014.10.28 |
申请人 |
Palantir Technologies Inc. |
发明人 |
Elliot Mark |
分类号 |
G06F17/27;G06F9/45;G06F17/30 |
主分类号 |
G06F17/27 |
代理机构 |
Finnegan, Henderson, Farabow, Garrett & Dunner LLP |
代理人 |
Finnegan, Henderson, Farabow, Garrett & Dunner LLP |
主权项 |
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, wherein each handler definition of the one or more handler definitions comprises a handler action definition and at least one handler definition of the one or more handler definitions comprises a handler listener definition; andgenerate the parser using the parser definition, wherein the parser comprises a parsing pipeline comprising two or more handlers, wherein output from a first handler of the two or more handlers is provided to a second handler of the two or more handlers; andexecute the generated parser. |
地址 |
Palo Alto CA US |