File: FilterMain.C

package info (click to toggle)
guavac 1.2-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,728 kB
  • ctags: 2,387
  • sloc: cpp: 20,367; yacc: 1,664; makefile: 504; lex: 348; ansic: 286; sh: 263
file content (18 lines) | stat: -rw-r--r-- 448 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 1995  David Engberg  All rights reserved
// $Id: FilterMain.C,v 1.1 1995/12/15 10:57:59 geppetto Exp $
#include "JavaClassFile.h"
#include <string>
#include <iostream.h>
#include <fstream.h>

int main() {
  CJavaClassFile* file = CJavaClassFile::ParseFromStream(cin, true);
  if (file == 0) {
    cerr << "Unable to handle input file" << endl;
    return 1;
  } else {
    file->Compile(cout);
    delete file;
    return 0;
  }
}