coverageIgnore=False,# mark line as ignored in coverage analysis
endAction=None,# A function that is called when this SimpleMatcher finishes
onClose=None,# A dictionary of onClose callbacks that are specific to this SimpleMatcher
onOpen=None,# A dictionary of onOpen callbacks that are specific to this SimpleMatcher
startReTransform=None,# A callback function that is called with the groups that were matched from the startReStr.
startReAction=None,# A callback function that is called when the starting regex is matcher. If the regex has any capturing groups, they will be provided as well to this function as parameter called "groups".
):
self.index=-1
self.startReStr=startReStr
...
...
@@ -99,10 +98,9 @@ class SimpleMatcher(object):
self.name=name
self.fixedStartValues=fixedStartValues
self.fixedEndValues=fixedEndValues
self.endAction=endAction
self.onClose=onClose
self.onOpen=onOpen
self.startReTransform=startReTransform
self.startReAction=startReAction
self.keep=False# Boolean flag used by the ParserOptimizer to determine which SimpleMatchers to keep
# boolean flag to signal that this SimpleMatcher does not have any
# effect (besides progressing input file):
...
...
@@ -110,14 +108,13 @@ class SimpleMatcher(object):