0.2.0-beta.3 • Published 6 years ago
@alex.garcia/oak-parser v0.2.0-beta.3
oak-parser
This is a fork of the original Observable parser that has 3 major changes:
- Removes
mutablekeyword/expressions - Removes
viewofkeyword/expressions - Adds new
recipekeyword and expression
For example:
recipe a = task()parses to:
{
"type": "Cell",
"id": {
"type": "RecipeExpression",
"id": {
"type": "Identifier",
"name": "a"
}
},
"async": false,
"generator": false,
"body": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "task"
},
"arguments": []
},
"references": [
{
"type": "Identifier",
"name": "task"
}
]
}See the original project for more details/docs for the parser in general.