IP Library Patent Application 12789318
Patent Application
App. No. 12/789,318

Specifying a Parser Using a Properties File

Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US None
App. No.
12/789,318
Abstract

A system for generating a parser and using the parser to parse a target file includes a target file description, an output format description, a Parser generator, a Parser, a target file, and a result object. The target file description and the output format description are included in one or more “properties files”, which are text files that include one or more name/value pairs (“properties”). The target file description and the output format description are input into the Parser generator, which outputs the Parser. The target file is input into the Parser, which outputs the result object. The target file description specifies one or more parsers and/or tokenizers that can be used to parse the target file. The parsers and/or tokenizers specified by the target file description are part of the generated Parser. These parsers and/or tokenizers make the Parser more flexible, which enables the Parser to parse semi-structured data.

Claims (22)

1 . A method for generating a Parser to parse a target file, comprising:

receiving a description of the target file, wherein the target file description describes a grammar of the target file by specifying a set of one or more parsers, and wherein each parser specification includes one or more pairs of a name and a value;

creating a data structure that represents the target file description; and

creating, for each parser in the set of parsers, an object that can parse a string.

2 . The method of claim 1 , wherein the target file describes a configuration of a device.

3 . The method of claim 1 , wherein the target file was output by a device in response to a command that was received by the device.

4 . The method of claim 1 , further comprising:

receiving a description of an output format, wherein the output format description describes a format of an output of the Parser by specifying a result object, and wherein the result object specification includes a set of one or more pairs of a name and a value; and

creating the result object;

wherein a parser object sets a value of an attribute of the result object based on a string.

5 . The method of claim 4 , wherein the target file describes a configuration of a device, and wherein the result object is an extensible data structure that includes custom-defined fields whose values reflect the device configuration.

6 . The method of claim 4 , wherein the target file was output by a device in response to a command that was received by the device, and wherein the result object is used to generate a command to send to the device.

7 . A computer program product for generating a Parser to parse a target file, wherein the computer program product is stored on a computer-readable medium that includes instructions that, when loaded into memory, cause a processor to perform a method, the method comprising:

receiving a description of the target file, wherein the target file description describes a grammar of the target file by specifying a set of one or more parsers, and wherein each parser specification includes one or more pairs of a name and a value;

creating a data structure that represents the target file description; and

creating, for each parser in the set of parsers, an object that can parse a string.

8 . A system for generating a Parser to parse a target file, the system comprising:

a computer-readable medium that includes instructions that, when loaded into memory, cause a processor to perform a method, the method comprising:

receiving a description of the target file, wherein the target file description describes a grammar of the target file by specifying a set of one or more parsers, and wherein each parser specification includes one or more pairs of a name and a value;

creating a data structure that represents the target file description; and

creating, for each parser in the set of parsers, an object that can parse a string; and

a processor for performing the method.

Assignments (5)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 9, 2015
From: HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P.
To: HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP
Reel/Frame 037079/0001 →
CERTIFICATE OF CONVERSION Recorded Nov 16, 2012
From: ARCSIGHT, INC.
To: ARCSIGHT, LLC.
Reel/Frame 029308/0908 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 16, 2012
From: ARCSIGHT, LLC.
To: HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P.
Reel/Frame 029308/0929 →
MERGER Recorded Dec 23, 2010
From: PRIAM ACQUISITION CORPORATION
To: ARCSIGHT, INC.
Reel/Frame 025525/0172 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 14, 2010
From: SHAH, DHAVAL M.; ALEXANDER, WILLIAM M.; AGUILAR-MACIAS, HECTOR; JIN, RUBIN
To: ARCSIGHT, INC.
Reel/Frame 024532/0859 →