Skip to content
/ Dorean Public

All purpose language based on BASIC made with python

Notifications You must be signed in to change notification settings

wolvido/Dorean

Repository files navigation

Dorean Prgramming Language

All purpose, high level programming language

based on BASIC Written on python

Sample Codes

variabes:

let x = 5

operators:

1+1

((1+1)/3+4)*2

6**3

comparisons:

5 == 5

2 + 1 == 3

2 > 3

1 == 1 and 2 == 2

conditionals:

let height = 180

let entrance = if height < 180 then "no entrance" else "entrance"

for and while loop:

let result = 1

for i = 1 to 7 ; let result = result * i

let result = 1

for i = 6 to 0 shift -1 ; let result = result * i

let i = 0

while i < 10000 ; let i = i + 1

string:

"this is" + "a string"

"string" * 3

functions:

function add(a,b) : a + b

add(1,2)

lists:

[1,2,3,4]

[1,2] + [3,4]

[1,2,3,4] - 1 #remove element 1

[1,2,3,4] - - 1 #remove last element

[1,2,3,4] / 0 #remove first element

BUILT_IN:

PI

print()

print("Hello world")

print_ret()

input()

input_int()

clear()

cls()

isInt()

isInt(23)

isStr("string")

isList([1,2,3])

isFunction(print)

append

pop

extend

let list = [1,2,3]

append(list,4)

pop(list,4)

extend(list,[4,5,6])

About

All purpose language based on BASIC made with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages