Is there a similar syntax for enum types?

The struct type can treat the entire file as a struct here. Is there a similar syntax for enum type?

I have a large enum type that I would like to be able to put into a separate file and use a similar syntax.

No. Files are implicitly structs. You can define the enum and then import only that one, if you want:

const AtmSt = @import("atm.zig").AtmSt;
3 Likes