builtins.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. Implementation of the Malio language specifications as seen in the
  3. official documentation:
  4. https://notabug.org/Malio/Documentation/src/master/Documentation.md
  5. Neither this implementation or the official documentation is complete
  6. so you can expect some immaturity on this.
  7. Methods:
  8. - print
  9. - writef
  10. - copyf
  11. Copyright 2015 - Malio dev team
  12. This file is part of malio-cpp
  13. malio-cpp is free software: you can redistribute it and/or modify
  14. it under the terms of the GNU General Public License as published by
  15. the Free Software Foundation, either version 3 of the License, or
  16. (at your option) any later version.
  17. malio-cpp is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. GNU General Public License for more details.
  21. You should have received a copy of the GNU General Public License
  22. along with this program. If not, see <http://www.gnu.org/licenses/>.
  23. */
  24. #include <iostream>
  25. #include <string>
  26. #include <fstream>
  27. #ifndef BUILTINS_H
  28. #define BUILTINS_H
  29. namespace malio {
  30. // -- METHODS --
  31. // print method: outputs content to terminal.
  32. void print(std::string arg);
  33. // writef method: writes content to a file.
  34. void writef(std::string content, std::string filename);
  35. // copyf method: copies one file as another.
  36. // -- FUNCTIONS --
  37. } // namespace malio
  38. #endif