PSeInt Online Editor
A complete pseudocode editor and interpreter that runs in your browser — run, step, inspect variables and see the flowchart.
| Name | Type | Value |
|---|
The flowchart is generated from the code in the editor.
Keyboard shortcuts
| Ctrl+Enter / F9 | Run / continue |
| F10 | Step (one instruction) |
| Shift+F5 | Stop |
| Ctrl+S / Ctrl+O | Save in browser / open file |
| Ctrl+F / Ctrl+H | Find / replace |
| Ctrl+Shift+F | Format code |
| Ctrl+Z / Ctrl+Y | Undo / redo |
| Tab / Shift+Tab | Indent / outdent |
| Esc then Tab | Leave the editor (keyboard users) |
Tips
- Programs start with
Algoritmo Nombreand end withFinAlgoritmo. - Assign with
<-, e.g.x <- 5. - When the program runs
Leer, type the value in the console and press Enter. - Arrays start at index 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.
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/FinProcesoDefinir … Como Entero | Real | Caracter | Logico(also Numero, Texto, Cadena)Leer,Escribir(withSin Saltar), assignment with<-or=Si … Entonces … SiNo … FinSiandSegun … Hacer … De Otro Modo … FinSegunMientras … Hacer … FinMientras,Repetir … Hasta Que/Mientras QuePara i <- a Hasta b Con Paso c Hacer … FinParaDimensionarrays and matrices (indices start at 1)SubProceso/Funcionwith return variable,Por Valor/Por Referencia, recursion;Retornaras 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 Cadaloops- 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.