-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Core.cpp
59 lines (47 loc) · 1.42 KB
/
Core.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// Core.cpp
// JoraLang
//
// Created by Pierre-Henry Soria on 31/07/2016.
// Copyright © 2016 Pierre-Henry Soria. All rights reserved.
//
#include "Core.hpp"
using namespace std;
namespace JoraLang
{
const char* Core::VERSION = "1.0";
const string Core::NAME = "JoraLang";
string Core::softwareInfo()
{
string text;
text = "Welcome to the \"" + NAME + " Language!\"\r\n";
text += "Copyright (c) 2016, Pierre-Henry Soria. All Rights Reserved.\r\n";
text += "Type \"-help\", \"-version\", \"-license\" or \"-credits\" to get more information.\r\n\r\n";
return text;
}
string Core::softwareVersion()
{
return NAME + " " + VERSION + "\r\n";
}
string Core::showHelp()
{
string text;
text = "----- " + NAME + " HELP -----\r\n";
text += "Usage: <PROGRAMM EXE> <file>\r\n";
text += "-V, -version : The number version\r\n";
text += "-H, -help : Help about " + NAME + "\r\n";
return text;
}
string Core::showLicense()
{
return "See here: https://github.com/pH-7/JoraLang/blob/master/LICENSE\r\n";
}
string Core::showCredits()
{
string text;
text = "----- Credits -----\r\n";
text += "Author: Pierre-Henry Soria\r\n";
text += "<https://github.com/pH-7/>\r\n";
return text;
}
}