UNPKG
mca-compiler
Version:
latest (0.2.0)
0.2.0
0.1.0
Compiles MCA code to MCIL
github.com/toxic-spanner/MCA
toxic-spanner/MCA
mca-compiler
/
nodes
/
KeyValueExpression.js
8 lines
•
209 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
exports
.
type
=
"KeyValueExpression"
;
exports
.
call
=
function
(
node, ctx, execute
) {
var
key = node.
key
?
execute
(node.
key
) :
null
;
return
{
key
: key,
value
:
execute
(node.
value
) }; };