12345678910111213141516171819202122232425262728293031 |
- /*
-
- My attempt at defining all builtin methods and functions as specified in
- the Malio language documentations.
- This may not be the best way to do it, but is my take to study C++
- */
- #include <iostream>
- #include <string>
- #include <fstream>
- #include "builtins.h"
- namespace malio {
- void print(std::string arg)
- {
- std::cout << arg << std::endl;
- }
- void writef(std::string content, std::string filename)
- {
- std::ofstream file(filename);
- file << content;
- file << std::endl;
- file.close();
- }
- } // namespace malio
|