Git Product home page Git Product logo

syntax-visualizer's Introduction

πŸ”­ Syntax Visualizer

Programming languages syntax visualizer with Abstract Syntax Tree & Node Coordinates Matrix representations

Table of Contents

Motivation

There are many programmers who want to understand the concept of an Abstract Syntax Tree, and, more importantly, there also people who study compilers and researchers who are interested in the Node Coordinates Matrix representation of the AST. The goal of this project is to create an online tool for generating AST and NCM from code in real time to make the process of exploring these concepts more convenient.

Features

  • Node Coordinates Matrix
  • Sharing snippets
  • Nodes highlighting
  • Restoring written code on page reopen
  • JavaScript language support

Usage

Open Syntax Visualizer in the browser and just type the code into the editor and see the result! Pretty straightforward, right?

Demo

Demo.mov

Run locally

You can clone and run project locally:

git clone https://github.com/evermake/syntax-visualizer.git
cd syntax-visualizer
npm install
npm run dev

git, nodejs (tested on version 16) and npm are required.

Nodes Coordinates Matrix

Node Coordinates Matrix is a representation of "an encoding of the inter-node relationships between nodes in an AST" [1]. In conjunction with the Key operator this concept is necessary for performing parallel computations over an AST: "...permits arbitrary computation over sub-trees of an AST using purely data-parallel array programming techniques" [1].

Please, read this article for more information.

Stack

References

[1] A. W. H. I. University, A. W. Hsu, I. University, and O. M. V. A. Metrics, β€œThe key to a data parallel compiler: Proceedings of the 3rd ACM SIGPLAN International Workshop on libraries, languages, and compilers for Array Programming,” ACM Conferences, 01-Jun-2016. [Online]. Available: https://dl.acm.org/doi/10.1145/2935323.2935331. [Accessed: 03-Jun-2022].

License

The project is licensed under a MIT license.

syntax-visualizer's People

Contributors

evermake avatar minusone-1 avatar metafates avatar maintheme2 avatar mrfired avatar

Stargazers

 avatar

Watchers

 avatar

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.