Main Page   Data Structures   File List   Data Fields   Globals  

main.c

Go to the documentation of this file.
00001 /*
00002  * InCode - [main.c]
00003  * (c) 2001, J. Weeks
00004  * jweeks@mailandnews.com
00005  *
00006  */
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 #ifdef HAVE_CONFIG_H
00017 #include <config.h>
00018 #endif
00019 
00020 #include <stdio.h>
00021 #include <stdlib.h>
00022 
00023 #include "token.h"
00024 #include "input.h"
00025 #include "output.h"
00026 
00027 int main(int argc, char *argv[])
00028 {
00029   printf("InCode v0.01, (c)2002\n");
00030   printf("J. Weeks, CarbonBased\n\n");
00031 
00032   //initOptions(argc, argv);
00033   inputInit("/dev/stdin");
00034   outputInit("/dev/stdout");
00035   tokenInit();
00036 
00037   while( inputExists() ) {
00038     tokenize();
00039     //if(flagOptomize)
00040     //optomize();
00041     //compile();
00042     //if(flagAssemble)
00043     //assemble();
00044   }
00045 
00046   printf("Closing input/output system\n");
00047   tokenClose();
00048   outputClose();
00049   inputClose();
00050 
00051   return EXIT_SUCCESS;
00052 }

Generated on Thu Feb 14 09:15:11 2002 for InCode by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001