Eon Computer Programming Language.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
xerox 929e257a8e
Finished cleaning, found/documented issues.
5 years ago
examples V0.9.2 5 years ago
functions Finished cleaning, found/documented issues. 5 years ago
hashmap V0.9.2 5 years ago
includes Finished cleaning, found/documented issues. 5 years ago
linked_list Finished cleaning, found/documented issues. 5 years ago
logic Finished cleaning, found/documented issues. 5 years ago
parser Finished cleaning, found/documented issues. 5 years ago
print Finished cleaning, found/documented issues. 5 years ago
vars Finished cleaning, found/documented issues. 5 years ago
README.md Finished cleaning, found/documented issues. 5 years ago
deon.l Finished cleaning, found/documented issues. 5 years ago
deon.y Finished cleaning, found/documented issues. 5 years ago
make.sh V0.9.2 5 years ago

README.md

Deon programming language V0.9.2.1

My computer programming language made with LEX/YACC written in C. (interpreted)

Hello World.

def Main : { 
    printf[ "hello world" ];
};
call Main;

Requirements to making a program: 1.) a struct/function. 2.) a call statement.

Variables

Variables are stored in a hashmap for quick and easy access. Variables also support type juggling. When you define a variable its type will be assumed when parsed.

myint = 121231;
mydouble = -123.122; 
mystring = "cool string";
mychar = 'c'; // char
myfunction = { printf[ "hello world" ]; }; (statement list)

Logic

Logic is first evaluated and if deemed valid then a list of statements will be executed.

if [ 10 > 9 ]: {
  printf [ "10 is bigger than 9!" ];
  newInt = 100; 
};

if [ {int} newInt > 99 ]: {
  printf [ "newInt is bigger than 99" ];
};

Functions

Functions can be declared inside of a struct and accessed by anyone who uses the scope resolution operator. Do not mistake structs as functions just because you can interact with them in the same way. Functions do not have "scope" like structs do. Functions can interact with all elements in the parenting struct including other functions, and those functions local variables.

def NewStruct : {
    someFunction = {
      printf[ "hello world" ];  
    };
};
call NewStruct;

Coming soon

TCP networking, file handling, and finally loops!