- Timestamp:
- 09/02/10 15:13:04 (14 years ago)
- Location:
- trunk/yao/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/main.cpp
r421 r422 16 16 // PURPOSE. 17 17 18 19 18 #include <cstring> 20 19 #include <iostream> … … 22 21 #include "Translator.hpp" 23 22 #include "help/Display.hpp" 23 24 24 #include <antlr/TokenStreamRecognitionException.hpp> 25 25 … … 37 37 // Check argument count. 38 38 if(argc <= 1) 39 throw runtime_error(" No file specified");39 throw runtime_error("no file specified"); 40 40 41 41 // Check if help menu is required. … … 44 44 exit(EXIT_SUCCESS); 45 45 } 46 46 47 47 filename = argv[1]; 48 48 if(filename.getExtension().empty()) … … 54 54 Translator translator(tokenizer); 55 55 // Code generation of the files Y1ProjectName.h and Y2ProjectName.h 56 //translator.generateCode(); 57 translator.descriptionVisualYAO(); 56 translator.generateCode(); 58 57 exitStatus = EXIT_SUCCESS; 59 58 //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 93 59 } 94 60 catch (RecognitionException& e){ -
trunk/yao/src/makefile
r391 r422 9 9 BOOSTDIR = ../share/boost_1_39_0 10 10 BOOSTFLAG = -I $(BOOSTDIR) 11 11 12 12 13 #LFLAGS = -L../lib -lantlr … … 32 33 33 34 $(CP) $(EXEC) ../bin/ 34 $(CP) $(EXEC) interface/ 35 35 36 #@echo 36 37 #@echo "Nardi's application---------------" … … 57 58 # target for compiling Visual YAO########################################################## 58 59 visual: 59 #make 60 #make -C interface/ 61 62 63 @echo "-----Done----- " 60 cd interface/; qmake -project; qmake; make; 64 61 65 62 # visual clean target ############ … … 131 128 $(CP) $(MQNDIR)/src/$(MQNLIB) $(MQNDIR)/bin/ 132 129 -@echo " $(EXEC) installed." 133 cd interface/; make; ./interface; cd - 130 134 131 # DO NOT DELETE
Note: See TracChangeset
for help on using the changeset viewer.