Ptoc

Jul 20, 2023

ANSI/Turbo Pascal to C/C++ converter

This is yet another ANSI/Turbo Pascal to C/C++ converter together with BGI graphics library emulation for X Window System.

Converter recognizes Pascal dialects which are compatible with Turbo Pascal 4.0/5.0 and ISO Pascal standard - IEC 71851990E including conformant arrays. Now it is tuned for Oregon Pascal-2 V2.1 which has few extensions to standard Pascal.

Converter can produce both C++ and C output.

Now PTOC recognizes Turbo Pascal’s extensions, such as units, strings, some special types and operations. Turbo Pascal extensions are supported only for C++ language.

Also emulation libraries of Borland Graphics Interface BGI for X Window System included in this distribution BGI emulators can be also used without converter for C programs using BGI.



Checkout these related ports:
  • Zig - Language designed for robustness, optimality, and maintainability
  • Zephir - Zephir is a transpiled language used for creating C-extensions for PHP
  • Ypsilon - Scheme implementation for real-time applications
  • Yorick - Interpreted language for scientific simulations
  • Yap - High-performance Prolog compiler
  • Yap-devel - High-performance Prolog compiler
  • Yabasic - Yet another Basic for Unix and Windows
  • Voc - Vishap Oberon Compiler for Oberon-2
  • Vala - Programming language and compiler that converts Vala code into C code
  • V8 - Open source JavaScript engine by Google
  • V8-beta - Open source JavaScript engine by Google
  • V - V Programming Language
  • Urweb - Ultimate host for embedded domain-specific languages
  • Ucc - C Compiler Which Implements the ANSI C89 Standard
  • Twelf - Meta-logical framework for deductive systems