Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F9897423
types.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
571 B
Referenced Files
None
Subscribers
None
types.ts
View Options
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
Details
Attached
Mime Type
application/javascript
Expires
Sat, Aug 1, 1:29 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
588351
Default Alt Text
types.ts (571 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment