import re

regex=re.compile(r'^\s+([A-Z]+) = ("[A-Z\s]+?")')
regex=re.compile(r'^\s+([A-Z]+) = ("[A-Za-z()\- ]+")')

f = open('types.txt', 'r')
out = open('names.txt', 'w')
matches = []
line = f.readline()
while line:
	r = regex.match(line)
	if r:
		matches.append((r.group(1), r.group(2)))
	line = f.readline()
for key, match in matches:
	out.write("allTypes.Add Key:=\"%s\", Item:=%s\n" % (key, match))

c8b28bb760ddca5eb47c6c6e59edd6843775d5cd
<mask token>

<mask token>
while line:
    r = regex.match(line)
    if r:
        matches.append((r.group(1), r.group(2)))
    line = f.readline()
for key, match in matches:
    out.write('allTypes.Add Key:="%s", Item:=%s\n' % (key, match))

<mask token>
regex = re.compile('^\\s+([A-Z]+) = ("[A-Z\\s]+?")')
regex = re.compile('^\\s+([A-Z]+) = ("[A-Za-z()\\- ]+")')
f = open('types.txt', 'r')
out = open('names.txt', 'w')
matches = []
line = f.readline()
while line:
    r = regex.match(line)
    if r:
        matches.append((r.group(1), r.group(2)))
    line = f.readline()
for key, match in matches:
    out.write('allTypes.Add Key:="%s", Item:=%s\n' % (key, match))

import re
regex = re.compile('^\\s+([A-Z]+) = ("[A-Z\\s]+?")')
regex = re.compile('^\\s+([A-Z]+) = ("[A-Za-z()\\- ]+")')
f = open('types.txt', 'r')
out = open('names.txt', 'w')
matches = []
line = f.readline()
while line:
    r = regex.match(line)
    if r:
        matches.append((r.group(1), r.group(2)))
    line = f.readline()
for key, match in matches:
    out.write('allTypes.Add Key:="%s", Item:=%s\n' % (key, match))

import re

regex=re.compile(r'^\s+([A-Z]+) = ("[A-Z\s]+?")')
regex=re.compile(r'^\s+([A-Z]+) = ("[A-Za-z()\- ]+")')

f = open('types.txt', 'r')
out = open('names.txt', 'w')
matches = []
line = f.readline()
while line:
	r = regex.match(line)
	if r:
		matches.append((r.group(1), r.group(2)))
	line = f.readline()
for key, match in matches:
	out.write("allTypes.Add Key:=\"%s\", Item:=%s\n" % (key, match))
