7 ['NUL ', 'SOH ', 'STX ', 'ETX ', 'EOT ', 'ENQ ', 'ACK ', 'BEL ',
8 'BS ', 'HT ', 'LF ', 'VT ', 'FF ', 'CR ', 'SO ', 'SI ',
9 'DLE ', 'DC1 ', 'DC2 ', 'DC3 ', 'DC4 ', 'NAK ', 'SYN ', 'ETB ',
10 'CAN ', 'EM ', 'SUB ', 'ESC ', 'FS ', 'GS ', 'RS ', 'US ',
16 if chr(i) in ["!" , "#" , "$" , "%" , "&" , "'" , "*",
17 "+" , "-" , "." , "^" , "_" , "`" , "|" , "~"] or\
18 ('0' <= chr(i) and chr(i) <= '9') or \
19 ('a' <= chr(i) and chr(i) <= 'z'):
20 sys.stdout.write('1 /* {} */, '.format(chr(i)))
21 elif (0x21 <= i and i < 0x7f):
22 sys.stdout.write('0 /* {} */, '.format(chr(i)))
24 sys.stdout.write('0 /* {} */, '.format(hex(i)))
26 sys.stdout.write('0 /* {} */, '.format(name(i)))
28 sys.stdout.write('\n')