summaryrefslogtreecommitdiff
path: root/src/ParseAll.java
diff options
context:
space:
mode:
authorEmanuele Grasso <96300448+L0P0P@users.noreply.github.com>2024-06-24 15:37:12 +0200
committerGitHub <noreply@github.com>2024-06-24 15:37:12 +0200
commit54b2c77e6875c1abb3d73fdfd0de924e75633087 (patch)
tree2be8d3ff7ac912c85c31637babb055efb344ae98 /src/ParseAll.java
parent8e7089a5d6ba1f4f50a90133bb50bc5c6c554aff (diff)
Package refactoring to avoid verbose paths (#4)
Diffstat (limited to 'src/ParseAll.java')
-rw-r--r--src/ParseAll.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ParseAll.java b/src/ParseAll.java
index 37de220..3e5d868 100644
--- a/src/ParseAll.java
+++ b/src/ParseAll.java
@@ -1,5 +1,3 @@
-package com.clp.project;
-
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
@@ -10,9 +8,10 @@ import javax.swing.*;
import org.antlr.v4.gui.TreeViewer;
import org.antlr.v4.runtime.*;
-import com.clp.project.parser.*;
+import parser.*;
public class ParseAll {
+ @SuppressWarnings("unused")
public static void main(String[] args) {
new File("./trees/").mkdirs();
for (File file : Objects.requireNonNull(new File("./progs").listFiles())) {
@@ -52,6 +51,7 @@ public class ParseAll {
}
}
+ @SuppressWarnings("unused")
private static String readFile(String filePath) throws IOException {
StringBuilder content = new StringBuilder();
try (BufferedReader reader = new BufferedReader(new FileReader(filePath))) {
@@ -63,6 +63,7 @@ public class ParseAll {
return content.toString();
}
+ @SuppressWarnings("unused")
private static void showTree(TreeViewer viewer) {
JFrame frame = new JFrame("Parse Tree");
JPanel panel = new JPanel();