meta: add shell script to generate while on linux

This commit is contained in:
2026-01-24 09:37:41 -05:00
parent 5bf2588d41
commit 0126101b1b
3 changed files with 13 additions and 1 deletions

View File

@@ -159,6 +159,7 @@ func kkenum(name string) string {
}
name = strings.ToUpper(name[:1]) + name[1:]
if !unicode.IsLetter(rune(name[0])) {
//lint:ignore ST1005 proper name
panic(fmt.Errorf("Koka enum variant %q (from %q) starts with a non-letter", name, orig))
}
for _, c := range name {