Pascal

Pascal

von Alexander Lobachev -
Anzahl Antworten: 2

Hi!

Unfortunately, at the moment, CodeRunner does not support the Pascal language.

Are there any plans to add support for this language?

Als Antwort auf Alexander Lobachev

Re: Pascal

von Richard Lobb -

Well, actually Pascal is present in the Jobe standbox so you can use it in CodeRunner questions already. The only thing that's missing is some sample Pascal question types. But those are easy enough to write, if you know what sort of questions you want to ask. The two simplest question types would probably be:

  1. A Pascal "Write a program" question. This would just run the student's code with any supplied standard input or other files. Any of the existing "Write a program" questions (e.g. the C one) will work fine in Pascal if you just change the language to 'pascal'.
  2. A Pascal "Write a procedure/function question". The template for this will consist of the student's code followed by the test code wrapped in begin ... end. 
I attach an XML export of these two question types. If you login in as an administrator and import them into the question bank you should be able to write simple questions. Here's a trivial example:

Screen dump of simple Pascal question