Patent ID: 9063744
Filing Date: 2015-06-23
Classification: G06F

Abstract:
1. A method for modifying a file written in a formal language, comprising: parsing, based on code of a parser, an input file written in a formal language to generate by the parser a data structure of the input file, the parser implemented using a formal language specification for the formal language of the input file; issuing, at an intermediate point in generation of the data structure of the input file by the parser and according to one or more query triggers in the code of the parser, one or more queries to a rule engine for evaluation of a first plurality of rules for modifying the input file, wherein the one or more queries include a subset of terminal symbols used to make up the data structure, wherein modifying the input file comprises altering the functionality of the input file by altering computer code of the input file according to the first plurality of rules; generating, by the parser at the intermediate point, the data structure by executing the action indicated by the query result; and reusing the parser with a second plurality of rules distinct from the first plurality of rules.