CCCC

From Esolang
Jump to navigation Jump to search

CCCC is an esolang created by User:Yayimhere, inspired by FFFF and FRACTRAN(Its name is simply John Conways last name, repeated alike FFFF's name). CCCC's computational class is currently unknown, however the creator believes it is turing complete, since it has infinite data storage, branching, fractions, addition and multiplication.

Semantics

CCCC has two places to store data. One is a counter, called n. The other is an infinite register space/coordinate plane, with each cell initially holding 1. A CCCC program is made up of n's initial value, and a list of fractions. Then, the following process is done for each fraction, looping around the fractions forever with the halting condition that twice, the program enters a cycle with the exact same values repeating twice. The process is described:

Say our fraction is p/q. Then set a temporary variable v to np/q. Then set n to the value at (p,q) coordinates. Then, if v is decimal then increment the cell at (p,q) by v. Then pass on to the next fraction.

Note that if a non fraction(a single integer) is found on the list, then just set n to that value.

Syntax

For each fraction p/q say:

( p : q )

And for every non fraction n say:

( n )

Written in base 16 with the 0x... format.