firescript
Version:
Firescript transpiler
37 lines (36 loc) • 766 B
JSON
{
"type": "Program",
"sourceType": "module",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "foo"
},
"init": {
"type": "ConditionalExpression",
"test": {
"type": "Identifier",
"name": "bar"
},
"consequent": {
"type": "Literal",
"value": "yes",
"raw": "'yes'"
},
"alternate": {
"type": "Literal",
"value": "no",
"raw": "'no'"
}
}
}
],
"kind": "const"
}
]
}