Files
adareducer/ada_reducer/interfaces.py
Nicolas Setton ec89ff0cc7 Add an "adareducer" script at the toplevel
For the benefit of the development environment, or any
users who only "git clone" this repository and work from it.

Fix the testsuite using this.

Rename the "adareducer" source dir to "ada_reducer"
2022-02-02 16:18:41 +00:00

27 lines
538 B
Python

class ChunkInterface(object):
"""One atomic actionable/undoable operation"""
def __init__(self):
pass
def do(self):
"""Apply the modification"""
pass
def undo(self):
"""Undo the modification"""
pass
class StrategyInterface(object):
"""Interface for reducing strategies"""
def __init__(self):
pass
def run_on_file(self, unit, lines, predicate):
"""Run the strategy on unit, modifying lines.
Return StrategyStats
"""
pass