Keywords
Declaration
Section titled “Declaration”| Keyword | JS Output | Description |
|---|---|---|
const | const | Constant declaration |
let | let | Variable declaration |
var | var | Var declaration (discouraged) |
be | = | Assignment |
Functions
Section titled “Functions”| Keyword | JS Output | Description |
|---|---|---|
fn | function | Function declaration/expression |
return | return | Return value |
to | => expr | Expression body |
gives | (erased) | Return type annotation |
async | async | Async function |
await | await | Await expression |
Conditional
Section titled “Conditional”| Keyword | JS Output | Description |
|---|---|---|
if | if | Conditional |
elif | else if | Else-if branch |
else | else | Else branch |
unless | if (!(...)) | Negated conditional |
then | (ternary/inline) | Inline conditional |
| Keyword | JS Output | Description |
|---|---|---|
while | while | While loop |
until | while (!(...)) | Negated while loop |
for | for | For loop |
in | of / in | Iterator |
range | (numeric range) | Range-based loop |
break | break | Break |
continue | continue | Continue |
Pattern Matching
Section titled “Pattern Matching”| Keyword | JS Output | Description |
|---|---|---|
match | if-else chain | Match expression |
when | (match arm) | Match case |
Modules
Section titled “Modules”| Keyword | JS Output | Description |
|---|---|---|
import | import | ESM import |
from | from | Import source |
export | export | ESM export |
default | default | Default export |
require | require() | CJS require |
use | import | Dot-path import |
mod | IIFE | Module namespace |
pub | export | Public export |
all | * as | Namespace import |
Operators
Section titled “Operators”Arithmetic
Section titled “Arithmetic”| Keyword | JS Output |
|---|---|
add | + |
sub | - |
mul | * |
div | / |
mod | % |
neg | - (unary) |
Comparison
Section titled “Comparison”| Keyword | JS Output |
|---|---|
eq | === |
ne | !== |
lt | < |
gt | > |
le | <= |
ge | >= |
Logical
Section titled “Logical”| Keyword | JS Output |
|---|---|
and | && |
or | || |
not | ! |
Pipeline
Section titled “Pipeline”| Keyword | JS Output |
|---|---|
pipe | b(a) |
Type Keywords
Section titled “Type Keywords”| Keyword | JS Output | Description |
|---|---|---|
is | typeof / instanceof | Type check |
as | (erased) | Type cast |
of | (erased) | Type annotation |
typeof | typeof | Typeof operator |
instanceof | instanceof | Instance check |
type | (erased) | Type alias |
| Keyword | JS Output |
|---|---|
new | new |
delete | delete |
this | this |
throw | throw |
try | try |
catch | catch |
finally | finally |
pipe | pipeline operator |
list | array literal |
object | object literal |