SudoLab

Scared of Pseudocode?
Let us help.

Write Cambridge-style pseudocode, run it in your browser, and see exactly what your logic does.

The SudoLab interpreter running a short quiz program: the source code on the left, and its output on the right, including the answer typed at the INPUT prompt.

One place to turn logic into confidence.

Built around the IGCSE syllabus.

The interpreter follows the pseudocode in the Cambridge IGCSE Computer Science (0478) syllabus. When something goes wrong, it tells you the line and explains the problem in plain English.

Data

  • DECLARE
  • CONSTANT
  • INTEGER
  • REAL
  • STRING
  • CHAR
  • BOOLEAN
  • 1D and 2D arrays

Selection and loops

  • IF / ELSE
  • CASE OF
  • FOR / NEXT
  • WHILE
  • REPEAT / UNTIL

Procedures and functions

  • PROCEDURE
  • FUNCTION
  • CALL
  • RETURN

Input, output and files

  • INPUT
  • OUTPUT
  • OPENFILE
  • READFILE
  • WRITEFILE
  • CLOSEFILE

Library routines

  • ROUND
  • RANDOM
  • DIV
  • MOD
  • LENGTH
  • LCASE
  • UCASE
  • SUBSTRING

logic first. syntax second.

Open Interpreter