GithubHelp home page GithubHelp logo

levpen / syntax-tree-visualization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from innoswp/syntax-tree-visualization

0.0 0.0 0.0 8.02 MB

BS21-06 Team: Alexandr, Alexandra, Nastya, Nikita, Lev, Anton

License: MIT License

JavaScript 28.08% TypeScript 55.64% CSS 6.10% Makefile 0.28% HTML 9.89%

syntax-tree-visualization's Introduction

ts Bugs Vulnerabilities Code Smells Lint Code Base

๐ŸŒณ Syntax Tree Visualizer

Syntax Tree Visualizer provides interactive environment for exploration of AST1 (abstract syntax tree) and SA2 (syntax array).

Features

  • Code editor with syntax checker
  • AST representation that updates as you type
  • SA representation that updates as you type
  • Highlighting of corresponding elements
  • Sharing your projects with others
  • Exporting to various formats

Supported languages

  • JavaScript

Demo

Demo

How to use

Simply type code in code editor and see how AST and SA change. For more information refer to documentation on the website.

Installation

All in one Docker container

docker run -p 8080:8080 -d --rm --name devast skril/stv:1.0-full

Development

Local setup

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

git clone https://github.com/InnoSWP/syntax-tree-visualization

For running the project you need the following requirements:

On macOS using Homebrew:

brew install git node
npm install yarn

On Arch Linux:

pacman -Suy nodejs npm git
npm install yarn
git submodule init
git submodule update

Using docker

docker run -p 8080:8080 -d --rm --name devast --mount src=/path/to/syntax-tree-visualization,dst=/app,type=bind skril/devast:archlinux

Important: change "path/to/syntax-tree-visualization" to the root directory of the project

Alternatively on UNIX operating systems:

docker run -p 8080:8080 -d --rm --name devast --mount src=$(pwd),dst=/app,type=bind skril/devast:archlinux

Local setup

Requirements:

Install dependencies

yarn

Build project

yarn build

Start server without building it on http://localhost:8080/

yarn start

Env vars: MYSQL_HOST=localhost;MYSQL_USER=root;MYSQL_DATABASE=swpbase;MYSQL_PASSWORD=12345
To start with them

export MYSQL_HOST=localhost export MYSQL_USER=root export MYSQL_DATABASE=swpbase export MYSQL_PASSWORD=12345; yarn start

Contribution

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Notable used tools

Links

Footnotes

  1. https://en.wikipedia.org/wiki/Abstract_syntax_tree โ†ฉ

  2. https://dl.acm.org/doi/10.1145/2935323.2935331 โ†ฉ

syntax-tree-visualization's People

Contributors

ananastya1 avatar antony-sk avatar bavpnet avatar levpen avatar skril3366 avatar uzifam 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.