Skip to content

Visualization and characterization of programs in multiple languages using Voronoi diagrams

Notifications You must be signed in to change notification settings

FLAGlab/SlideBox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voronoi Diagrams

Creates a Voronoi Diagram from a program definition using the LOC metric

Quick Usage

Download any grammar defined in ANTLR4 and run the following command,

java -cp antlr-4.9-complete.jar org.antlr.v4.Tool -Dlanguage=Python3 -visitor ../clone_detection/grammars/XXX/XXX.g4

To run the program, create an environment

conda create -n clones python=3.8
conda activate clones

pip install antlr4-python3-runtime==4.7.2

Then run the parser Using the command

python -m analysis --f examples/example.kt 

will return the eCST for the program

About

Visualization and characterization of programs in multiple languages using Voronoi diagrams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.8%
  • ANTLR 5.2%