nixd
Loading...
Searching...
No Matches
DiagnosticEnum.h.py
Go to the documentation of this file.
1# Generate "DiagnosticEnum.h"
2import sys
3
4from support import lines
5from diagnostic import diagnostics
6
7
8output = open(sys.argv[1], "w")
9_ = output.write(
10 lines(
11 [
12 "enum DiagnosticKind {",
13 *map(lambda x: f" DK_{x['cname']},", diagnostics),
14 "};",
15 ]
16 )
17)