parse-js 0.15.0

JavaScript parsing library
Documentation
{
  "$t": "FunctionDecl",
  "is_async": false,
  "body": {
    "$t": "BlockStmt",
    "body": [
      {
        "$t": "ExpressionStmt",
        "expression": {
          "$t": "UnaryExpr",
          "argument": {
            "$t": "LiteralNumberExpr",
            "value": 1.0
          },
          "operator": "Yield",
          "parenthesised": false
        }
      }
    ]
  },
  "generator": true,
  "name": {
    "$t": "ClassOrFunctionName",
    "name": "a"
  },
  "signature": {
    "$t": "FunctionSignature",
    "parameters": []
  }
}