shibam-naskar / MANGO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MANGO

MANGO is a interprited language made on python

MANGO is fast and syntax is user easy and user friendly

basic hellow world

INSTALATION IN WINDOWS

1 - download the setup file from here https://github.com/shibam-naskar/testhtps/raw/shibam-portfolio/mango%20win%20X%2064.exe

2 - then add the instalation directory path to system environment variable path

3 - Run fron anywhere using terminal or powershell

INSTALATION IN LINUX

1 - Just download or clone this repo

git clone https://github.com/shibam-naskar/MANGO_Linux.git

2 - add the folder path to system path variable

How to set system variable

1 - Open linux default tarminal

2 - locate .bashrc file and open it with any editot like nano,vim etc

nano .bashrc

3 - add the folder path at the verry bottom of .bashrc file like this

export PATH=$PATH:YOYR_FOLDER_PATH

MONGO EXAMPLES

# dynamic variavles declaration
VAR num = 100
VAR str = "MANGO IS AWASOME"
var flo = 12.006
# lists operations
VAR array = ["I","Love","Mango"]

# print element by index
PEINT(array/index)

# print last element
PRINT(array/-1)

# add element in array
VAR array = array + 4
VAR array = array + "Grapes"
VAR array = array + "any thing"

# concat two arrays
VAR array = array1 * array2

# remove elements from list
VAR array = array-index

# remove elemets from last of list
VAR array = array--index
# loops example

# for loop
FOR i=0 TO 6 THEN
    PRINT(i)
END

# while loop

VAR ab = 0

WHILE ab<10 THEN
    PRINT(ab)
    VAR ab = ab + 1
END
# Dynamic Functions example
VAR array = ["I","Love","Mango"]

FUN printarray(index)
	PRINT(array/index)

	RETURN index
END

About