develop #15

Merged
cromer merged 64 commits from develop into master 2023-02-23 01:11:48 -03:00
2 changed files with 16 additions and 3 deletions
Showing only changes of commit c5ff5479a5 - Show all commits

View File

@ -8,7 +8,7 @@
#include <limits> #include <limits>
#include <memory> #include <memory>
static int mainLoop() static int obelisk::mainLoop()
{ {
auto parser = std::unique_ptr<obelisk::Parser> {new obelisk::Parser()}; auto parser = std::unique_ptr<obelisk::Parser> {new obelisk::Parser()};
std::unique_ptr<obelisk::KnowledgeBase> kb; std::unique_ptr<obelisk::KnowledgeBase> kb;
@ -109,5 +109,5 @@ int main(int argc, char** argv)
return EXIT_FAILURE; return EXIT_FAILURE;
}*/ }*/
return mainLoop(); return obelisk::mainLoop();
} }

View File

@ -1 +1,14 @@
static int mainLoop(); /**
* @brief The obelisk namespace contains everything needed to compile obelisk code.
*
*/
namespace obelisk
{
/**
* @brief This is the main loop for obelisk.
* This loop handles lexing and parsing of obelisk source code.
*
* @return int Returns EXIT_SUCCESS or EXIT_FAILURE.
*/
static int mainLoop();
} // namespace obelisk