Abstract base class for all rules.
class BaseRule
Fix the text by manipulating the cursor.
c
fix: (c) ->
Test whether the rule matches at the cursor position.
match: (c) -> throw new Error("'match' not implemented")