Giter Site home page Giter Site logo

cellc's Introduction

CellC

CellC is my programming language which combines 'C' syntax and cell-based memory.

add command adding some value to the current cell's value. For example, add; will add 1, but add -2; will add -2.

next command moves pointer at another cell, depends from number after this command. For example, next; moves pointer on next one cell, but next -1; move pointer on previous cells.

new command creates new cell in the end of cells list.

del command delete last cell.

Variable NOW returning value in current cell. Variable DATA returning cells list.

echo command prints text or result of expression after command For example, echo 'Hello World!' prints 'Hello World!', but echo (9 > 0) prints True

$ command is input.

if command is condition statement. For example,

if (1 < NOW) {
	echo 'Hello World!'
}

will not prints something 'cause default value of all cells is equals 0.

while command is 'while' loop. For example,

while (NOW ~ 10) {
	add;
}

will adding cell's value while it not equals 10.

And operator > means 'more than', < - 'less than', = - 'equals', ~ - 'not equals' Operator ; is not terminator of statement, it is needed for readability Operator # is line comment

Code Samples:

Truth Machine:

while ($) {
	echo 1;
	}
echo 0;

Create as many cells as the user enters:

add $;
while (NOW) {
	new;
	add -1;
}

Hello World:

echo 'Hello World!'

cellc's People

Contributors

theneon-hacker avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.