Page MenuHomePhorge

types.ts
No OneTemporary

Size
571 B
Referenced Files
None
Subscribers
None

types.ts

export enum LispNode {
APPLY,
WORD,
ATOM,
STRING
}
export type Env = Record<string, LispValue>;
export type Leaf = [LispNode, string | number];
export type Expr = Leaf | Expr[];
export type LispValue = number | string | LispValue[] | LispFn;
export type LispFn = (args: Expr[], env: Env) => LispValue;
export const Leaf = {
apply: (value: string): Leaf => [LispNode.APPLY, value],
word: (value: string): Leaf => [LispNode.WORD, value],
atom: (value: number): Leaf => [LispNode.ATOM, value],
string: (value: string): Leaf => [LispNode.STRING, value]
};

File Metadata

Mime Type
application/javascript
Expires
Sun, May 3, 8:28 AM (13 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
539176
Default Alt Text
types.ts (571 B)

Event Timeline