Gokborg / SomLangJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SomLangJS

How To Develop With SomLang

Code & Compile: https://gokborg.github.io/SomLangJS/

Run the generated URCL assembly here: https://bramotte.github.io/urcl-explorer/

The 'Errors' box will outline in red whenever there is an error. As you type it could light up, just finish typing your code and then look at the box.

Introduction to SomLang

Arithmetic Boolean
A + B A == B
A - B A != B
A * B A > B
A / B A < B
A >= B
A <= B

Variables

uint a = 5;
uint b = (1 + 1);
a += 1;

Arrays

uint[5] a;
uint[] b = [1, 2, 3];
a[0] = 1;

Conditionals

uint a = 10;
if a > 10 {
}
elif a < 10 {
}
else {
}

Loops

uint a = 1;
while a > 1 {
}
while 1 {
}

About


Languages

Language:TypeScript 96.8%Language:HTML 1.7%Language:CSS 1.4%Language:Batchfile 0.1%