Skip to content

Enerhim/CustomProgrammingLanguage

Repository files navigation

Custom Programming Language

This is a programming language made using python based on another programming language called BASIC.

To use this language, you need to run the python shell.py command in your terminal It will start a shell which is like the python shell/IDLE but for my language.

To run files call the run() command in the shell

Inbuilt functions:

print(string) : prints the value
print_ret(string) : returns and prints the value
input() : take in input
input_int() : take input and convert to integer
clear() : clears the terminal


is_number(number) : check if passed value is a number
is_string(string) : check if passed value is a string
is_list(list) : check if passed value is a list
is_function(function) : check if passed value is a function


append(list, value) : appends a value to a list
pop(list, index) : pops the given index from a list
extend(list, list) : combine two lists
quit() : quits the programm
eval(str) : evaluates a given string
len(list) : returns len of a list
run(fn) : runs the given filename


Inbuilt Variables

NULL: 0
false: 0
true: 1
MATH_PI: pi: 3.1415..
MATH_E: e: 2.71828..

About

a programming language. made in python..

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages