summaryrefslogtreecommitdiffstats
path: root/code/simpleSableCCCalulator/sableCCCalculator/Compiler.java
diff options
context:
space:
mode:
authorchris.sutcliffe <ctd.sutcliffe@gmail.com>2021-11-29 16:46:56 +0000
committerchris.sutcliffe <ctd.sutcliffe@gmail.com>2021-11-29 16:46:56 +0000
commit33359862f5455dc7003ebbe5357c611298042cee (patch)
tree1eff075406177fb2d0feff685f24c7e306f589c8 /code/simpleSableCCCalulator/sableCCCalculator/Compiler.java
parent2e3be43da8761eb77b00af20f559fef7a8c6b1b8 (diff)
downloadesotericFORTRAN-33359862f5455dc7003ebbe5357c611298042cee.tar.gz
esotericFORTRAN-33359862f5455dc7003ebbe5357c611298042cee.zip
clean repo (remove code dir, add UI dir)
Diffstat (limited to 'code/simpleSableCCCalulator/sableCCCalculator/Compiler.java')
-rw-r--r--code/simpleSableCCCalulator/sableCCCalculator/Compiler.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/code/simpleSableCCCalulator/sableCCCalculator/Compiler.java b/code/simpleSableCCCalulator/sableCCCalculator/Compiler.java
deleted file mode 100644
index 7430cfe..0000000
--- a/code/simpleSableCCCalulator/sableCCCalculator/Compiler.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package sableCCCalculator;
-import sableCCCalculator.parser.*;
-import sableCCCalculator.lexer.*;
-import sableCCCalculator.node.*;
-import java.io.*;
-
-public class Compiler
-{
- public static void main(String[] args)
- {
- try
- {
- System.out.println("Using source file: " + args[0]);
- // Create a Parser instance.
- Parser p = new Parser(new Lexer(new PushbackReader(new InputStreamReader(new FileInputStream(args[0])), 1024)));
- // Parse the input.
- Start tree = p.parse();
- // Apply the translation.
- tree.apply(new Translation());
- System.out.println("");
- }
- catch(Exception e)
- {
- System.out.println(e.getMessage());
- }
- }
-} \ No newline at end of file