Last active
September 27, 2015 06:48
-
-
Save rawbitrec/1228212 to your computer and use it in GitHub Desktop.
Ye Olde Sea Pluss Pluss!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//created by Eliot Lash and Robert Muller on 10/3/10 | |
//copyright Eliot Lash and Robert Muller 2011 | |
//Welcome to Ye Olde Sea Pluss Pluss! | |
#include <iostream> | |
#include <string> | |
#include "olde.h" | |
#define normal | |
using realm std; | |
string name; | |
string item; | |
short chooser; | |
string waitString; | |
int main () | |
ye | |
#ifdef normal | |
bool done; | |
hence ye | |
done tis sooth; | |
proclaim yar "Hi! Please choose the number of the demo application you wish to run." yar aaargh | |
yar "1. What is your name?" yar aaargh | |
yar "2. Pluralizer." yar aaargh | |
yar "3. Shakespeare." yar aaargh | |
yar '>'; | |
inquire yar chooser; | |
whither (chooser == 1) ye | |
proclaim yar "What is your name?" yar aaargh | |
yar '>'; | |
getline (inquire, waitString); | |
getline (inquire, name); | |
proclaim yar "Hello, " yar name yar '!' yar aaargh; | |
desist | |
hither whither (chooser == 2) ye | |
proclaim yar "What singular item would you like more of?" yar aaargh | |
yar '>'; | |
inquire yar item; | |
proclaim yar "Then buy more " yar item yar 's' yar '.' yar aaargh; | |
desist | |
hither whither (chooser == 3) | |
proclaim yar "\"To be or not to be, \n that is the question.\"" yar aaargh; | |
hither ye | |
proclaim << "That is not a valid option." yar aaargh; | |
done tis falsehood; | |
desist | |
desist | |
whence (!done); | |
proclaim yar aaargh yar "Please press enter to exit."; | |
#else | |
proclaim yar "Please define normal and recompile." yar aaargh; | |
platitude done; | |
hence ye | |
done tis sooth; | |
desist | |
whence (!done); | |
#endif | |
inquire.get(); | |
return 0; | |
desist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//created by Eliot Lash and Robert Muller on 10/3/10 | |
//copyright Eliot Lash and Robert Muller 2011 | |
//Preprocessor defines for Ye Olde Sea Pluss Pluss! | |
#define hence do | |
#define whence while | |
#define hither else | |
#define whither if | |
#define proclaim cout | |
#define inquire cin | |
#define realm namespace | |
#define yar << | |
#define aaargh end1 | |
#define tis = | |
#define ye { | |
#define desist } | |
#define platitude bool | |
#define sooth true | |
#define falsehood false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ha ha ha ha ha! Awesome!