main.cc 591 B

1234567891011121314151617181920212223242526
  1. #include <iostream>
  2. #include <cstring>
  3. #include <fstream>
  4. #include <iterator>
  5. #include <string>
  6. #include "analisador/lexico.hh"
  7. #include "analisador/sintaxico.hh"
  8. #include "analisador/semantico.hh"
  9. int main(){
  10. Lexico lexico;
  11. if(lexico.getBool()){
  12. std::cout << lexico.getCode() << std::endl;
  13. std::string out = "#include <iostream>\n\nint main(){\n" + lexico.getCode() + "}";
  14. std::ofstream ofs ("output.cc", std::ofstream::out);
  15. ofs << out;
  16. }
  17. remove("tabeladeSimbolosInteiro");
  18. remove("tabeladeSimbolosFlutuante");
  19. remove("tabeladeSimbolosBanana");
  20. }