firescript
Version:
Firescript transpiler
120 lines (119 loc) • 3.31 kB
JSON
{
"type": "Program",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "greeting"
},
"init": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Literal",
"value": "Hello ",
"raw": "'Hello '"
},
"right": {
"type": "Identifier",
"name": "name"
}
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "question"
},
"init": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Literal",
"value": "What is the ",
"raw": "'What is the '"
},
"right": {
"type": "Identifier",
"name": "best"
}
},
"right": {
"type": "Literal",
"value": " ",
"raw": "' '"
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "questions"
},
"property": {
"type": "Identifier",
"name": "ask"
}
},
"arguments": [
{
"type": "Literal",
"value": "beer",
"raw": "'beer'"
}
]
}
},
"right": {
"type": "Literal",
"value": " in ",
"raw": "' in '"
}
},
"right": {
"type": "Identifier",
"name": "world"
}
},
"right": {
"type": "Literal",
"value": "?",
"raw": "'?'"
}
}
}
],
"kind": "const"
}
],
"sourceType": "module"
}