def on_enum(self, node):
        name, _ = itail(self.visit(*node.children))
        yield classes.Enum(name)
enum: "enum" indent "{" ( option | enumField | ";" )* "}"
dataset/ETHPy150Open Evgenus/protocyt/protocyt/compiler.py/CodeGenerator.on_enum