Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 1.02 KB

ecma.md

File metadata and controls

28 lines (26 loc) · 1.02 KB

EcmaScipt → N

Syntax

EcmaScript N Meaning Description
Literal
"string" :<<Hey!>> or :«Hey!» String
[BTICK]Hello, ${name}[/BTICK] :«Hello, [person]» Template
parse[BTICK]Hello, ${person}[/BTICK] parse:«Hello, [person]» Parser Both also work w/ <<…[a]…>>
~ ~
0b101 0b:101 Binary o/c/x works w/ rational nums in N
0o707 0o:707 Octal
123.456 0c:123.456 Decimal
0xabc 0x:abc Hexadecimal
~ ~
true 1 Boolean Truth
false 0 Boolean Falsity
~ ~
[a, b] [a b] Array → Vector
~ ~
Object
obj.prop obj.prop Access
obj["$þ€¢íæł cħ@rs"] obj.«$þ€¢íæł cħ@rs» Quoted Access
~ ~
Function
x=> x(y) x ^ x y Lambda Abstraction over x