Giter Site home page Giter Site logo

node-syntax-tree's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar kddnewton avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

aaronlippold

node-syntax-tree's Issues

Full syntax_tree binding for node-syntax-tree interface

We are looking to update our OCLIF cli https://saf-cli.mitre.org/ inspec-delta utiliy and ts-inspec-objects library https://github.com/mitre/ts-inspec-objects in the MITRE SAF CLI to help ease upkeep of our ruby DSL inspec profiles which are generated from XCCDF security benchmarks.

These tools used to be in ruby but we moved to typescript to ease end-user use and adoption.

We are looking to use the Web Assembler Ruby work to use ASTs to parse, update and lint our profiles rather then recreate that body of work in TS/JS and throw away years of work and more importantly keep running into parse errors, corner cases when there are 'tools that do that already' but we also face the challenge of mixing ruby and TS/JS.

Is there any reason only part of the syntax_tree was not fully bound here? We can update it but wanted to ask if there was a reason not all parts were added and it would not work well before we looked into it and perhaps submitted a PR.

What is the suggested: a) generator and b) node traversal library for Syntax Tree ASTs

Hello, first very cool work!

For a)

Assuming I parse and generate the AST and then 'do my processing and update the AST' which generator should I pass the modified AST to rewrite my transformed ruby file

for b) I was trying to do something simple like move a node in the tree and write out a new file, the docs don't seem to call out a specific library for OO style ast traversal, manipulation, unless the assumption is that we would use TreeWriter. Can you provide some insight or pointers to documentation or blog that might help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.