Commit 0134c9e0 authored by Johannes Bechberger's avatar Johannes Bechberger

Add binary-trees and fannkuch-redux programs

Bases on sources from the computer language benchmarks game
parent cc871030
......@@ -137,8 +137,8 @@ def is_importable_file(file: str) -> bool:
has_main_method = True
if all([has_package, has_public_class, not has_main_method]):
return True
if (has_package or has_public_class) == has_main_method:
raise PreProcessorError("File '{}' has invalid format: "
"package={}, 'public class'={}, main method={}"
.format(file, has_package, has_public_class, has_main_method))
return False
\ No newline at end of file
#if (has_package or has_public_class) == has_main_method:
# raise PreProcessorError("File '{}' has invalid format: "
# "package={}, 'public class'={}, main method={}"
# .format(file, has_package, has_public_class, has_main_method))
return False
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