yield operand
def get_indented_lines(lines):
+ """gets a set of indented lines, plus a blank line as termination
+ """
li = []
while lines:
l = lines.pop(0).rstrip()
d['pcode'] = li
d['extra_uninit_regs'] = extra_uninit_regs
+ # check if (temporarily) optional "Description" exists
+ if lines[0].startswith("Description:"):
+ l = lines.pop(0).rstrip() # skip "Description"
+ d['description'] = get_indented_lines(lines)
+
# "Special Registers Altered" expected
l = lines.pop(0).rstrip()
assert l.startswith("Special"), ("special not found %s" % l)