summaryrefslogtreecommitdiff
path: root/src/ParseAll.java
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-06-04 14:11:32 +0200
committerGitHub <noreply@github.com>2024-06-04 14:11:32 +0200
commit1c8761901b26c0be4d61f3aed5ec0495a558a0e7 (patch)
treebe3177edeaf93cbd57e49f7067418bc8ef0dfdd3 /src/ParseAll.java
parent663b99a971f8dd7f7776fe3647f24ce728b3d434 (diff)
Refactor using package `com.clp.project` (#1)
Co-authored-by: geno <gabriele.genovese2@studio.unibo.it>
Diffstat (limited to 'src/ParseAll.java')
-rw-r--r--src/ParseAll.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ParseAll.java b/src/ParseAll.java
index 0d6f0d1..37de220 100644
--- a/src/ParseAll.java
+++ b/src/ParseAll.java
@@ -1,3 +1,5 @@
+package com.clp.project;
+
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
@@ -8,8 +10,11 @@ import javax.swing.*;
import org.antlr.v4.gui.TreeViewer;
import org.antlr.v4.runtime.*;
+import com.clp.project.parser.*;
+
public class ParseAll {
public static void main(String[] args) {
+ new File("./trees/").mkdirs();
for (File file : Objects.requireNonNull(new File("./progs").listFiles())) {
String fileStr = file.getPath();
// fileStr = "./progs/wrong.py";