9. The method of claim 1 , wherein the action specified by any of the first plurality of rules comprises one or more of the following: a cancel action instructing the parser to stop parsing the input file; an add action instructing the parser to add text before a current node of the data structure; a delete action instructing the parser to delete a current node of the data structure; and an add_after action instructing the parser to add text after a current node of the data structure.
9. The method of claim 1 , wherein the action specified by any of the first plurality of rules comprises one or more of the following: a cancel action instructing the parser to stop parsing the input file; an add action instructing the parser to add text before a current node of the data structure; a delete action instructing the parser to delete a current node of the data structure; and an add_after action instructing the parser to add text after a current node of the data structure. 10. The method of claim 9 , wherein any of the first plurality of rules further comprises, if the action comprises an add action or an add_after action, a context of the text to add to the data structure.