code management: generate source files with slight variations of various rules
问题 I have a source file in a declarative language ( twolc , actually) that I need to write many variations on: a normative version and many non-normative versions, each with one or more variations from the norm. For example, say the normative file has three rules: Rule A: Do something A-ish Rule B: Do something B-ish Rule C: Do something C-ish Then one variation might have the exact same rules as the norm for A and C , but a different rule for B , which I will call B-1 : Rule A: Do something A