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)
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/
python3 build.py -a x86_64 -o libjava-tree-sitter tree-sitter-java ...
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.
Run analysis3D.py
with the app.properties
as a parameter. Results will be extractor into /analysis_3d
.
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.