Skip to content

Commit

Permalink
Updated banner for N8.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Nov 29, 2024
1 parent b75e878 commit 2139f68
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
11 changes: 11 additions & 0 deletions include/N8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@
# define N8_BUILD_TYPE "beta"
# define N8_VERSION "v1.0.0-" N8_BUILD_TYPE "-" N8_BUILD_PLATFORM
# define N8_BUILD_TIME __TIME__ " " __DATE__

# define N8_MAIN_BANNER \
" \u001b[38;5;87m___\r\n / \\\r\n " \
"\u001b[38;5;110m__\u001b[38;5;87m| |\u001b[0m " \
"\u001b[1;33mN8 Programming Language\u001b[0m\r\n " \
"\u001b[38;5;110m/ \u001b[38;5;87m\\___/\u001b[0m " \
" \u001b[1;33m" N8_VERSION " \u001b[0m\r\n" \
" \u001b[38;5;110m| |\u001b[0m \u001b[1;33m" \
N8_BUILD_TIME "\u001b[0m\r\n \u001b[38;5;110m\\___" \
"/\u001b[0m"

#endif

#define N8_ENV_PATH_NAME "N8_PATH"
Expand Down
10 changes: 2 additions & 8 deletions src/N8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,9 @@
#include <stdexcept>

#ifndef __EMSCRIPTEN__
auto printBanner(N8Util::ArgumentParser argParse) -> void {
std::cout
<< "\u001b[1;36mN8 Programming Language ("
<< N8_VERSION
<< ", "
<< N8_BUILD_TIME
<< ")\u001b[0m"
<< std::endl;

auto printBanner(N8Util::ArgumentParser argParse) -> void {
std::cout << N8_MAIN_BANNER << std::endl;
std::cout
<< std::endl
<< "\u001b[3;37mN8 is free software, please check the source for copying"
Expand Down
9 changes: 2 additions & 7 deletions src/n8/core/Runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,8 @@ void Runtime::repl() {
std::string input, line;
int iterNum = 1;

std::cout
<< "\u001b[1;36mN8 Programming Language ("
<< N8_VERSION
<< ", "
<< N8_BUILD_TIME
<< ")\u001b[0m"
<< std::endl;
std::cout << N8_MAIN_BANNER
<< std::endl << std::endl;
std::cout << "\u001b[1;32m>>>\u001b[0m ";

while(std::getline(std::cin, line)) {
Expand Down

0 comments on commit 2139f68

Please sign in to comment.