Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (21 loc) · 436 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 436 Bytes

vx-ast-parser

AST Parser for VisionX

Fork from @babel/parser

Install

tnpm install --save vx-ast-parser

Usage

const parser = require('vx-ast-parser');

const ast = parser.parse(visionxCode, {
  jsxTopLevel: true,
  plugins: [
    'jsx',
    'optionalChaining',
    'decorators',
    'objectRestSpread',
    'pipelineOperator',
  ]
});