Skip to content

My own programming language called Juli made in typescript with react

Notifications You must be signed in to change notification settings

FrozenAssassine/Juli-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alternate text

Juli Programming Language

My own programming language called Juli in Typescript and React

INFO: Work in progress, some things might not work

Syntax:

Comments:

#This is a comment

Create a variable:

var myvariable1 = 100;
var myvariable2 = 100.55;
var myvariable3 = "Hello World";
var myarray = new [500, 1000, 2000, 4000];

For loops:

for(var item in myarray) { }
for(var i in range(0, 100)) { }
for(var i in "Hello World") { }
for(var i in new [100, 500, 1000, 5000]) { }

Output:

print(50 + 200);
print("Hello World");
print(myvariable1);
print(myarray);

Math operations:

100 + 100;
100 - 100;
100 * 100;
100 / 100;
100 % 100;

Functions:

func calculateAdd(val1: number, val2: number) : number
{
  return val1 + val2;
}

If:

if(myvariable1 == 100)
{
}

Access array:

print(myarray[:3]);
print(myarray[1:2]);
print(myarray[2:-1]);
print(myarray[1]);
print(myarray[:]);

Repeat string:

print("-" * 50);

About

My own programming language called Juli made in typescript with react

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published