Educational code converter between languages
This tool converts source code between Pascal, C, Java and Pseudocode (VisualG/Portugol style). The goal is educational: helping students and teachers understand how the same logical structures are written in different languages.
The conversion uses local AST parsing in the browser — no code is sent to any server. Paste your program, choose source and target language, and see the result with explanations of each syntactic difference.
Supported languages and recognized structures
The converter recognizes the most common structures used in programming courses: variables, assignment, if/else, while, for, repeat/do-while, functions, procedures, read/write, switch/case and arithmetic expressions.
- Pascal: program, var, begin/end, writeln, readln, :=, function/procedure.
- C: #include, main(), printf, scanf, {}, ++/-- operators.
- Java: class, public static void main, System.out.println, Scanner.
- Pseudocode: algoritmo, inicio/fim, leia, escreval, <- assignment.