diff options
Diffstat (limited to 'code/FORTRAN2C/fortran2c/Compiler.java')
-rw-r--r-- | code/FORTRAN2C/fortran2c/Compiler.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/code/FORTRAN2C/fortran2c/Compiler.java b/code/FORTRAN2C/fortran2c/Compiler.java deleted file mode 100644 index 7b124fa..0000000 --- a/code/FORTRAN2C/fortran2c/Compiler.java +++ /dev/null @@ -1,28 +0,0 @@ -package fortran2c; -import fortran2c.parser.*; -import fortran2c.lexer.*; -import fortran2c.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. - CWriter cWriter = new CWriter("build/out.c"); - - tree.apply(new Translation(cWriter)); - } - catch(Exception e) - { - System.out.println(e.getMessage()); - } - } -}
\ No newline at end of file |