@alex.garcia/oak-parser
[![CircleCI](https://circleci.com/gh/observablehq/parser.svg?style=svg&circle-token=c7004fecc8765b1b34f0be42ced4772038eb3910)](https://circleci.com/gh/asg017/oak-parser)
Last updated 2 months ago by alex.garcia .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @alex.garcia/oak-parser 
SYNC missed versions from official npm registry.

oak-parser

CircleCI

This is a fork of the original Observable parser that has 3 major changes:

  1. Removes mutable keyword/expressions
  2. Removes viewof keyword/expressions
  3. 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.

Current Tags

  • 0.1.1                                ...           latest (2 months ago)

3 Versions

  • 0.1.1                                ...           2 months ago
  • 0.1.0                                ...           2 months ago
  • 0.0.2                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 6
Dependencies (3)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |