0.2.0-beta.3 • Published 4 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
mutable
keyword/expressions - Removes
viewof
keyword/expressions - Adds new
recipe
keyword 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.