https://github.com/frozenassassine/juli-react
My own programming language called Juli made in typescript with react
https://github.com/frozenassassine/juli-react
custom programminglanguage react typescript web
Last synced: 3 months ago
JSON representation
My own programming language called Juli made in typescript with react
- Host: GitHub
- URL: https://github.com/frozenassassine/juli-react
- Owner: FrozenAssassine
- Created: 2023-07-26T20:55:56.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-29T14:19:49.000Z (over 1 year ago)
- Last Synced: 2025-01-12T05:25:19.256Z (4 months ago)
- Topics: custom, programminglanguage, react, typescript, web
- Language: TypeScript
- Homepage:
- Size: 271 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
Juli Programming Language
My own programming language called Juli in Typescript and React
### INFO: Work in progress, some things might not work
### Syntax:
Comments:
```py
#This is a comment
```Create a variable:
```py
var myvariable1 = 100;
var myvariable2 = 100.55;
var myvariable3 = "Hello World";
var myarray = new [500, 1000, 2000, 4000];
```
For loops:
```py
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:
```py
print(50 + 200);
print("Hello World");
print(myvariable1);
print(myarray);
```Math operations:
```py
100 + 100;
100 - 100;
100 * 100;
100 / 100;
100 % 100;
```Functions:
```py
func calculateAdd(val1: number, val2: number) : number
{
return val1 + val2;
}
```If:
```py
if(myvariable1 == 100)
{
}
```Access array:
```py
print(myarray[:3]);
print(myarray[1:2]);
print(myarray[2:-1]);
print(myarray[1]);
print(myarray[:]);
```Repeat string:
```py
print("-" * 50);
```