Skip to content

jcrienen/github-source-code-identifiers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Tree-sitter

Building on Ubuntu (Linux)

Prerequisites

sudo apt install git

sudo apt install openjdk-17-jdk or any other version.

sudo apt-get install python3-distutils

sudo apt install build-essential

Add JAVA_HOME to ~/.bashrc (Linux):

export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 export PATH=$JAVA_HOME/bin:$PATH

macOS (~/.zshrc): export JAVA_HOME=$(/usr/libexec/java_home)

Clone

git clone https://github.com/jcrienen/java-tree-sitter.git cd java-tree-sitter git clone https://github.com/tree-sitter/tree-sitter.git

For each of the wanted tree-sitter grammars: git clone [clone-url] ex. git clone https://github.com/tree-sitter/tree-sitter-java.git

https://tree-sitter.github.io/tree-sitter/

Build library

python3 build.py -a x86_64 -o libjava-tree-sitter tree-sitter-java ...

Running the code

Extractor

Build the wrapper library locally using mvn install. Build the extractor using Maven and run it by using java -jar file.jar -p app.properties. Modify app.properties according to your own needs.

Analyzer

Run analysis3D.py with the app.properties as a parameter. Results will be extractor into /analysis_3d.

CSE3000 Research project

This repository links to the work for the 2023 Q2 Research project course of the CSE bachelor at TU Delft.

Please see the projects here.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published