Esoteric programming language, cbrain

cbrain an esoteric programming language for use in COBOL …

Well met,

Just modified pbrain, http://esolangs.org/wiki/Pbrain an esoteric language designed by Paul M. Parks in 2004 that adds procedures to bf, an esolang originally designed by Urban Müller in 1993. Daniel B Cristofani implemented a C version of a pbrain interpreter. That code was modified to implement cbrain, http://esolangs.org/wiki/Cbrain in 2013.

cbrain is an esoteric language implemented with an engine using both OpenCOBOL, http://sourceforge.net/projects/open-cobol/ and C.

The OpenCOBOL compiler knows how to process .c files and cobc is used in the building of cbrain.

cbrain led to .cb script filenames, which led to joking around with CB slang, and 10-four type 10- codes are peppered throughout the implementation of cbrain and the read, eval, loop console, cbrainrun. In addition to single character instructions, cbrain also accepts quoted strings. These strings are treated as CALLs to dynamic shared objects (in theory written in COBOL, but anything found by the dynamic link loader will do), with current memory cell passed to the function and then the return value is used to overwrite the current cbrain memory cell.

Useless. Fun. In the spirit of esolang, public domain files stashed away at http://opencobol.add1tocobol.com/cbrain/

Cheers,
Brian

Leave a Reply

Your email address will not be published. Required fields are marked *