Data

From Esolang
Jump to navigation Jump to search

Data is a programming language i made that uses only json-like data and dot notation to make logic

The Two Things

Data

Data is lazy evaluated

a = {val: "hi", op: "hello", other: "idk", these: "names don't matter until you use dot notation"}
b = {some: "thing", yay: "ok"}

Dot

a = {thing: "yay"}
a.thing #yay
not = {
true: false
false: true
}
true = {
val: true
not: false
and: {true: {true: true, false: false}, false: {true: false, false: false}}.(this.val)
}
false = {
val: false
not: true
and: {true: {true: true, false: false}, false: {true: false, false: false}}.(this.val)
}
true.and.true #true
not.true #false