Question Authors' Forum

Adding Prolog in Coderunner

 
Picture of Utpal Das
Adding Prolog in Coderunner
by Utpal Das - Friday, 14 September 2018, 4:35 AM
 

Thanks again. On our local Jobeserver, C & Java assignment evaluations are working pretty well. I am now struggling to setup SWI-Prolog. Already installed SWI-Prolog compiler on Jobeserver and tried /var/www/html/jobe/application/libraries/swipl_task.php as given, however SWI-Prolog is not appearing in the Coderunner Question type.

Picture of Richard Lobb
Re: Adding Prolog in Coderunner
by Richard Lobb - Friday, 14 September 2018, 7:23 AM
 

The set of question types is defined by the set of available question prototypes. Adding explicit support for a new language to the Jobe server doesn't give you any new question types.

See the CodeRunner documentation on User defined question types and Supporting or implementing new languages. You'll see in the second of those links that you don't actually need to add explicit support for a new language to Jobe; you just have to install the language on the Jobe server. You can then access it via a script in one of the existing languages. This is the preferred approach because it doesn't create maintenance issues when Jobe is updated.

Virtually all languages at University of Canterbury are nowadays run via Python scripts, because it gives you much more flexibility.

- Richard


Picture of Utpal Das
Re: Adding Prolog in Coderunner
by Utpal Das - Saturday, 15 September 2018, 3:33 AM
 

While going thru the second link, I found: "Turn on the Twig All checkbox, so that all fields of the question will get processed by Twig, once the template parameters have been set up." Where can I find this checkbox?

Picture of Richard Lobb
Re: Adding Prolog in Coderunner
by Richard Lobb - Sunday, 16 September 2018, 10:08 PM
 

It's in the topmost panel of the question authoring form, as shown in the figure below. However, it's a new feature and may not be in your version of CodeRunner. It's only relevant when you're randomising questions, so if this is still about adding prolog to CodeRunner you can ignore it.