nixd
Loading...
Searching...
No Matches
libnixf
src
Basic
DiagnosticEnum.h.py
Go to the documentation of this file.
1
# Generate "DiagnosticEnum.h"
2
import
sys
3
4
from
support
import
lines
5
from
diagnostic
import
diagnostics
6
7
8
output = 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
)
Generated by
1.12.0