16.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit a4f717ba authored by eckhart's avatar eckhart
Browse files

- MLW-parser: allow empty Position; MLW-compiler: BelegLemmata automatisch als Sprungziel setzen

parent e06059b6
......@@ -305,7 +305,7 @@ def grammar_unit(test_unit, parser_factory, transformer_factory, report=True, ve
try:
cst = parser(test_code, parser_name)
except UnknownParserError as upe:
cst = cst.new_error(Node(ZOMBIE_PARSER, ""), str(upe)).init_pos(0)
cst = cst.new_error(Node(ZOMBIE_PARSER, "").init_pos(0), str(upe))
clean_test_name = str(test_name).replace('*', '')
log_ST(cst, "match_%s_%s.cst" % (parser_name, clean_test_name))
tests.setdefault('__cst__', {})[test_name] = cst
......
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