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

Commit 4b248f94 authored by di68kap's avatar di68kap

- Korrekturen

parent dc35ffcc
......@@ -287,3 +287,6 @@ def compile_source(source: str,
messages = syntax_tree.collect_errors()
adjust_error_locations(messages, original_text, source_mapping)
return result, messages, ast
# TODO: Verify compiler against grammar, i.e. make sure that for all on_X()-methods, `X` is the name of a parser
......@@ -261,7 +261,7 @@ def get_report(test_unit):
report.append(indent(cst.as_sxpr(compact=True)))
if ast:
report.append('\n### AST')
report.append(indent(ast.as_sxpr(compact=True)))
report.append(indent(ast.as_xml()))
for test_name, test_code in tests.get('fail', dict()).items():
heading = 'Fail-test "%s"' % test_name
report.append('\n%s\n%s\n' % (heading, '-' * len(heading)))
......
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