summaryrefslogtreecommitdiff
path: root/src/Main.java
diff options
context:
space:
mode:
authorL0P0P <grassoemanuele@live.com>2024-06-27 12:02:35 +0200
committerL0P0P <grassoemanuele@live.com>2024-06-27 12:02:35 +0200
commit3c4229fc9e0ec6da9a7f60b57b9e93c49d1b6b6c (patch)
treeaca198eca62a0260a50ea59003c44a942e98f521 /src/Main.java
parentfb89b8c0885ee4e289cfb577bbabf0ee66b05024 (diff)
Fixed a lot of problems from all the progs we need to parse
Diffstat (limited to 'src/Main.java')
-rw-r--r--src/Main.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main.java b/src/Main.java
index 21645db..c3c1cdd 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -20,7 +20,7 @@ public class Main {
try {
// String fileStr = file.getPath();
// FIXME: use the fileStr above
- String fileStr = "./test/1a.py";
+ String fileStr = "./progs/a600.py";
System.out.println(fileStr);
System.out.println(readFile(fileStr));
CharStream cs = CharStreams.fromFileName(fileStr);
@@ -41,7 +41,7 @@ public class Main {
JPanel panel = new JPanel();
TreeViewer viewer = new TreeViewer(Arrays.asList(parser.getRuleNames()),
tree);
- viewer.setScale(1.5); // Zoom factor
+ viewer.setScale(1); // Zoom factor
panel.add(viewer);
frame.add(panel);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);