If you have an enumeration enum [tag] [: type] {enum-list} then you can convert the enum-list part to something like case some_entry: return "some_entry"; for each entry in enum-list, if the operation is set to: case $: return "$";
Whereas the character $ is the replacement position for the actual enumeration entry.
Operation
Enumeration-List