34 lines
773 B
Python
34 lines
773 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
# program/match-regex
|
|
|
|
|
|
# Standardized types do not require authors to specify any control script as
|
|
# it can be generated on import. However when provided it will overwrite the
|
|
# default behaivior.
|
|
|
|
import sys
|
|
import subprocess
|
|
|
|
|
|
|
|
def build(context):
|
|
pass
|
|
|
|
def run(context):
|
|
pass
|
|
|
|
|
|
# The following code serves to illustrate what will be generated automaticly
|
|
# for simple programming tasks in C.
|
|
# AUTO-GENERATED CODE:
|
|
def grade(context):
|
|
"""A function that governs the grading process when different from default.
|
|
Expected is return value that indicates if the task passed or failed."""
|
|
print("default GRADE HANDLER says hello ;) context ist: %s" % context, file=sys.stderr)
|
|
return "hoho ;)"
|
|
|
|
|