prettier test output

This commit is contained in:
Guilhem Fauré 2023-04-26 14:29:41 +02:00
parent c7438403e0
commit fc575696ba

View File

@ -16,10 +16,10 @@ class content:
# Parses a file & display its parse tree
def test(filename):
print(f"--- Parsing of {filename}")
print(f"--- Parsing of {filename} ---\n")
parsed = spipParser.parse(open(path.dirname(__file__) + "/" + filename).read())
print(parsed, "\n")
print(parsed.pretty(), "\n")
print("--- Pretty print : ---\n\n", parsed.pretty(), "\n")
# Test