You can edit almost every page by Creating an account. Otherwise, see the FAQ.

BaCon (programming language)

From EverybodyWiki Bios & Wiki

Script error: No such module "Draft topics". Script error: No such module "AfC topic".

BaCon a free, open source BASIC to C computer language translator for Unix based systems started by Peter van Eerten in 2009.

The name "BaCon" is an acronym for Basic Converter. BaCon converts BASIC source code to plain C source code which can be compiled for platforms like BSD, MacOSX, Android, Solaris and Linux.

BaCon is implemented in shell script and in itself. The shell version can convert the BaCon version of BaCon. The resulting binary has an extremely high conversion rate. On newer systems, the average conversion rate usually lies above 10.000 lines per second. BaCon can also translate itself and is therefore a self-translating translator.

The shell script version uses a common script syntax which is compatible with either BASH version 4.x and higher or versions of KornShell released after 2012. Alternatively, the KornShell emulation in ZShell can be used to execute the shell version of BaCon as well.

The output of the converter consists of plain C code which can be compiled by various compilers, for example Clang, GCC, TCC, and the Compaq C compiler. Binaries have been produced successfully for different 32-bit and 64-bit architectures like x86, x86_64, Arm, DEC Alpha, PowerPC and SPARC.

The emitted C code also can be compiled by a C++ compiler like G++ or Clang++ which allows development with object oriented toolkits.

BaCon covers a common set of BASIC instructions known as structured BASIC. The syntax was inspired by QuickBASIC and ScriptBasic and has been expanded with modern extensions to allow network programming, regular expressions, delimited string operations, and handling for associative arrays and hash tables. It also is able to implement GUI programming for Xaw, Xaw3D, Motif, and GTK version 2, 3 and 4. Next to this, BaCon can interface with existing 3rd party libraries and can easily merge with 3rd party C or C++ code.

External links[edit]

References[edit]

Notes
  • The BASIC's page [1].
  • The Free Country.com - Free BASIC Compilers and Interpreters [2].
  • OSDN.net [3]
  • Rosetta Code [4]


This article "BaCon (programming language)" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:BaCon (programming language). Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.