File: FilterMain.C

package info (click to toggle)
guavac 1.0-5
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 2,716 kB
  • ctags: 2,357
  • sloc: cpp: 19,765; yacc: 1,629; makefile: 492; lex: 348; ansic: 284; sh: 280
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;
  }
}