Methods and systems for extracting information from computer code
First Claim
Patent Images
1. A method comprising:
- extracting, with a preprocessor in a computer system, macroinstructions that are hard-coded into parser code of a command line interface (CLI) parser, wherein the macroinstructions define a proper CLI syntax for CLI commands input to a CLI prompt and include parse nodes used by the CLI parser to analyze whether one or more CLI commands input to the CLI prompt have proper CLI syntax, and wherein the macroinstructions are written according to a first computer system language;
converting, with the preprocessor, the macroinstructions into at least one parse graph having an Extensible Markup Language (XML) format, wherein the converting includes encapsulating the parse nodes of the macroinstructions with XML tags and stitching together the encapsulated parse nodes of the macroinstructions to generate the parse graph, and wherein the first computer system language is different than an Extensible Markup Language (XML) language associated with the parse graph; and
generating, with the preprocessor, an exportable representation of the at least one parse graph and outputting the exportable representation of the at least one parse graph from the computer system.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods and systems for manipulating information represented by computer code are described. Macroinstructions that are used to analyze an input are accessed. The macroinstructions are written according to a first computer system language. The macroinstructions are rewritten as strings according to a second computer system language. The strings are included in an exportable representation.
-
Citations
18 Claims
-
1. A method comprising:
-
extracting, with a preprocessor in a computer system, macroinstructions that are hard-coded into parser code of a command line interface (CLI) parser, wherein the macroinstructions define a proper CLI syntax for CLI commands input to a CLI prompt and include parse nodes used by the CLI parser to analyze whether one or more CLI commands input to the CLI prompt have proper CLI syntax, and wherein the macroinstructions are written according to a first computer system language; converting, with the preprocessor, the macroinstructions into at least one parse graph having an Extensible Markup Language (XML) format, wherein the converting includes encapsulating the parse nodes of the macroinstructions with XML tags and stitching together the encapsulated parse nodes of the macroinstructions to generate the parse graph, and wherein the first computer system language is different than an Extensible Markup Language (XML) language associated with the parse graph; and generating, with the preprocessor, an exportable representation of the at least one parse graph and outputting the exportable representation of the at least one parse graph from the computer system. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer-usable storage medium having computer-readable program code embodied therein configured to cause a computer system to:
-
extract, with a preprocessor in the computer system, macroinstructions that are hard-coded into parser code of a command line interface (CLI) parser, wherein the macroinstructions define a proper CLI syntax for CLI commands input to a CLI prompt and include parse nodes used by the CLI parser to analyze whether one or more CLI commands input to the CLI prompt have proper CLI syntax, and wherein the macroinstructions are written according to a first computer system language; convert, with the preprocessor, the macroinstructions into at least one parse graph having an Extensible Markup Language (XML) format, wherein the computer system is configured to convert the macroinstructions by encapsulating the parse nodes of the macroinstructions with XML tags and by stitching together the encapsulated parse nodes of the macroinstructions to generate the parse graph, and wherein the first computer system language is different than an Extensible Markup Language (XML) language associated with the parse graph; and generate, with the preprocessor, an exportable representation of the at least one parse graph and output the exportable representation of the at least one parse graph from the computer system. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A system comprising:
-
means for extracting, with a preprocessor in a computer system, macroinstructions that are hard-coded into parser code of a command line interface (CLI) parser, wherein the macroinstructions define a proper CLI syntax for CLI commands input to a CLI prompt and include parse nodes used by the CLI parser to analyze whether one or more CLI commands input to the CLI prompt have proper CLI syntax, and wherein the macroinstructions are written according to a first computer system language; means for converting, with the preprocessor, the macroinstructions into at least one parse graph having an Extensible Markup Language (XML) format, wherein the means for converting includes means for encapsulating the parse nodes of the macroinstructions with XML tags and means for stitching together the encapsulated parse nodes of the macroinstructions to generate the parse graph, and wherein the first computer system language is different than an Extensible Markup Language (XML) language associated with the parse graph; and means for generating, with the preprocessor, an exportable representation of the at least one parse graph and outputting the exportable representation of the at least one parse graph from the computer system. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification