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.
Arithmetic | Boolean |
---|---|
A + B | A == B |
A - B | A != B |
A * B | A > B |
A / B | A < B |
A >= B | |
A <= B |
uint a = 5;
uint b = (1 + 1);
a += 1;
uint[5] a;
uint[] b = [1, 2, 3];
a[0] = 1;
uint a = 10;
if a > 10 {
}
elif a < 10 {
}
else {
}
uint a = 1;
while a > 1 {
}
while 1 {
}