DcScript

From Esolang
Jump to: navigation, search
This article is a stub, which means that it is not detailed enough and needs to be expanded. Please help us by adding some more information.

dcScript is an esoteric language created by Daaloul Chiheb on September 2011. It is designed to be usefull but is minimalistic and is hard to code with it for big projects.

The language instructions

The language is constitued by a large set of instructions (for an eso' language). There are around 40 instructions in it. The language supports integers, strings and arrays (of integers and strings). It supports statements such as conditions too but has no direct way to support loops except a label system (: and call).

Example

Here is a dcScript program that prints "Hello the World !" on the screen :

Hello the World program
sysprtn "Hello the World !"
wait
quit


Factorial
[NO ERRLOG]
title "Factorial - dcScript implementation"
int fact
int cpt
int n
int c
fac:
defi fact 1
defi cpt 2
start:
ifmin cpt n
mult fact cpt
addi cpt 1
call start
ifend
ifeql cpt n
mult fact cpt
addi cpt 1
call start
ifend
sysprt "x! = "
dspvar int fact
sysprtn ""
_start:
sysprt "Entrez le x = "
getstream int n
ifeql n -1
call end
ifend
call fac
end:
sysprtn "x! = 1"
sysprtn "Press any key to continue..."
wait
quit

Implementations

There is currently a single implementation of this language and is the official one which is not finish yet. It is downloadeable from here. The source code can be found here.

Turing completeness

The language is supposed to be Turing complete but no proof was made.