I have a set of rules for string transformation that I parse from a file. The rules look like this:
'aaa' -> 'bbb'
'aa' -> 'bc'
Assuming I know how to parse the file, what would be a good data structure in C to hold these transformations? Later on I will need to go through the data structure and get both the 'input' and the 'output' of the transformation for all the rules.
Thank you.