Expressions
In addition to the basic primitives this language also has some additional expression syntax.
Identifiers
knotconst foo = 10;const result = foo + foo * foo / foo;
knotconst foo = 10;const result = foo + foo * foo / foo;
Group
knotconst result = 5 * (5 - 10);
knotconst result = 5 * (5 - 10);
Closure
knotconst result = {let foo = 10 - 3;let bar = 4 * 7;foo > bar;};
knotconst result = {let foo = 10 - 3;let bar = 4 * 7;foo > bar;};
Property Access
knotimport { library } from "@/library";const book = library.book;
knotimport { library } from "@/library";const book = library.book;
Function Call
knotfunc run -> {};const result = run();
knotfunc run -> {};const result = run();