recore / vx-ast-parser

AST parser for VisionX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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',
  ]
});

About

AST parser for VisionX


Languages

Language:JavaScript 100.0%