Interpreter

Gradelang Interpreter.

gradelang.interpreter.interpret(stream) → None[source]

Interprets the given stream.

gradelang.interpreter.worker(question: gradelang.question.Question, setup: tuple, teardown: tuple) → gradelang.question.Question[source]

Worker Process for questions.

Passing setup and teardown explicitly because Windows uses spawn instead of fork, which means we lose the global state on Win. In either case, state is not returned from neither spawn or fork, so any changes made within this function cannot impact the caller.