PSeInt Online Editor

A complete pseudocode editor and interpreter that runs in your browser — run, step, inspect variables and see the flowchart.

ReadyLn 1, Col 1

Your code stays in your browser. Save stores it locally; Download PSC creates a file you can open in the desktop PSeInt.

Flowchart of your program

Generated live from the editor above. Zoom, fit, choose a function and export it to PNG.

100%
The flowchart is generated from the code in the editor.

Supported PSeInt syntax

The editor uses a real lexer, parser and interpreter written in JavaScript (no eval). It follows PSeInt's flexible profile:

  • Algoritmo/Proceso … FinAlgoritmo/FinProceso
  • Definir … Como Entero | Real | Caracter | Logico (also Numero, Texto, Cadena)
  • Leer, Escribir (with Sin Saltar), assignment with <- or =
  • Si … Entonces … SiNo … FinSi and Segun … Hacer … De Otro Modo … FinSegun
  • Mientras … Hacer … FinMientras, Repetir … Hasta Que / Mientras Que
  • Para i <- a Hasta b Con Paso c Hacer … FinPara
  • Dimension arrays and matrices (indices start at 1)
  • SubProceso / Funcion with return variable, Por Valor / Por Referencia, recursion; Retornar as a shortcut
  • Operators + - * / ^ MOD, = <> < > <= >=, Y O NO (and & | ~)
  • Functions: RC/RAIZ, ABS, LN, EXP, SEN, COS, TAN, ASEN, ACOS, ATAN, TRUNC, REDON, AZAR, ALEATORIO, LONGITUD, MAYUSCULAS, MINUSCULAS, SUBCADENA, CONCATENAR, CONVERTIRANUMERO, CONVERTIRATEXTO, constant PI
  • Borrar Pantalla, Esperar Tecla, Esperar n Segundos

Not supported yet

  • Para Cada loops
  • Exporting to C, C++, Java, Python and other languages
  • Selectable language profiles (strict mode, 0-based arrays, mandatory Definir)
  • Editing the algorithm by dragging blocks in the flowchart

Safety limits

  • Maximum 2,000,000 executed instructions per run (stops infinite loops)
  • Maximum 400 nested calls (stops infinite recursion)
  • Arrays up to 1,000,000 elements; files up to 256 KB (.psc / .txt)

Found a program that behaves differently from desktop PSeInt? Tell us and include the code.