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