Commit b1d0ac62 authored by Connor Abbott's avatar Connor Abbott

bifrost/asm: Handle empty clause headers

parent c1dea6b3
......@@ -2027,11 +2027,16 @@ if __name__ == '__main__':
clause_id = scan_clause_start(l)
i, l = next(itr)
header_tokens = scan_clause_header_tokens(l)
if l != '{':
header_tokens = scan_clause_header_tokens(l)
unexpected_eof = True
i, l = next(itr)
else:
header_tokens = {}
clause = Clause(clause_id, header_tokens)
unexpected_eof = True
i, l = next(itr)
if l != '{':
raise ParsingException('Unexpected line after clause header: ' + l)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment