Changeset 422 for trunk/yao


Ignore:
Timestamp:
09/02/10 15:13:04 (14 years ago)
Author:
yerima
Message:

makefile and main.cpp restaured to the version 309.

Location:
trunk/yao/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yao/src/main.cpp

    r421 r422  
    1616// PURPOSE. 
    1717 
    18  
    1918#include <cstring> 
    2019#include <iostream> 
     
    2221#include "Translator.hpp" 
    2322#include "help/Display.hpp" 
     23 
    2424#include <antlr/TokenStreamRecognitionException.hpp> 
    2525 
     
    3737    // Check argument count. 
    3838    if(argc <= 1) 
    39       throw runtime_error("No file specified"); 
     39      throw runtime_error("no file specified"); 
    4040 
    4141    // Check if help menu is required. 
     
    4444      exit(EXIT_SUCCESS); 
    4545    } 
    46          
     46 
    4747    filename = argv[1]; 
    4848    if(filename.getExtension().empty()) 
     
    5454    Translator translator(tokenizer); 
    5555    // Code generation of the files Y1ProjectName.h and Y2ProjectName.h 
    56     //translator.generateCode(); 
    57         translator.descriptionVisualYAO(); 
     56    translator.generateCode(); 
    5857    exitStatus = EXIT_SUCCESS; 
    5958    //cout << "End application" << endl; 
    60  
    61         //QMessageBox msgBox; 
    62         //msgBox.setWindowTitle("Aide sur la création d'un nouveau projet."); 
    63          
    64          
    65         translator.theConstantTable; 
    66         //MainController MainController(translator.theConstantTable); 
    67         //m_ConstantCopy = new ConstantWindow(&theConstantTable, &theHeaderList);  
    68          
    69         for (Table<Constant>::iterator it = translator.theConstantTable.begin(); it != translator.theConstantTable.end(); it++) 
    70         {        
    71                 //Constant test(it->getName(), it->getText()); 
    72                 //MainController MainController(test);  
    73                 cout    << it->getName() << ".def1" << endl << it->getText() << ".def2" << endl; 
    74                 //cout << "#" << endl;      
    75         //msgBox.setText("Le dernier parametre est:" + it->getName() + it->getText()); 
    76         } 
    77         translator.theHeaderList; 
    78         for (vector<string>::iterator it = translator.theHeaderList.begin(); it != translator.theHeaderList.end(); it++) 
    79                         cout << it->c_str() << endl; 
    80          
    81         translator.theTrajectoryTable; 
    82         for (Table<Trajectory>::iterator it = translator.theTrajectoryTable.begin(); it != translator.theTrajectoryTable.end(); it++) 
    83                         cout << it->getName() << ".traj1" << endl << it->getType() << ".traj2" << endl << it->getBoot() << ".traj3" << endl << it->getOffset() << ".traj4" << endl << it->getStep() << ".traj5" << endl << it->getSize() << ".traj6"<< endl; 
    84  
    85         translator.theSpaceTable; 
    86         for (Table<Space>::iterator it = translator.theSpaceTable.begin(); it != translator.theSpaceTable.end(); it++) 
    87                         cout << it->getProperty(0) << ".sp1" << endl << it->getProperty(1) << ".sp2" << endl << it->getProperty(2) << ".sp3" << endl; 
    88  
    89         //translator.theOperatorTable; 
    90         //for (Table<Operator>::iterator it = translator.theOperatorTable.begin(); it != translator.theOperatorTable.end(); it++) 
    91           //           cout << it->getProperty(0) << ".sp1" /*<< endl << it->getProperty(1) << ".sp2" << endl << it->getProperty(2) << ".sp3"*/ << endl; 
    92  
    9359  } 
    9460  catch (RecognitionException& e){ 
  • trunk/yao/src/makefile

    r391 r422  
    99BOOSTDIR        = ../share/boost_1_39_0 
    1010BOOSTFLAG       = -I $(BOOSTDIR) 
     11 
    1112 
    1213#LFLAGS         = -L../lib -lantlr 
     
    3233         
    3334        $(CP) $(EXEC) ../bin/ 
    34         $(CP) $(EXEC) interface/ 
     35 
    3536        #@echo   
    3637        #@echo "Nardi's application---------------"  
     
    5758# target for compiling Visual YAO########################################################## 
    5859visual:  
    59         #make 
    60         #make -C interface/ 
    61          
    62          
    63         @echo "-----Done----- " 
     60        cd interface/; qmake -project; qmake; make; 
    6461         
    6562# visual clean target ############ 
     
    131128        $(CP) $(MQNDIR)/src/$(MQNLIB) $(MQNDIR)/bin/ 
    132129        -@echo " $(EXEC) installed." 
    133         cd interface/; make; ./interface; cd - 
     130 
    134131# DO NOT DELETE 
Note: See TracChangeset for help on using the changeset viewer.