An enum directive would simplify various pieces of code that requires manual enumerations. roudoudou did a great job in https://github.com/EdouardBERGE/rasm/commit/7f3198e407d55c594fb484df7fb16370aa686368 for rasm Inspiring documentation is here http://rasm.wikidot.com/syntaxe:structures