update

This commit is contained in:
ValKmjolnir
2023-06-14 00:01:15 +08:00
parent da22dd03c0
commit ec1985b3cc
7 changed files with 185 additions and 75 deletions
+36
View File
@@ -18,6 +18,42 @@ const error& parse::compile(const lexer& lexer) {
return err;
}
void parse::easter_egg() const {
std::clog
<< " _,,,_ \n"
<< " .' `'. \n"
<< " / ____ \\ Fucking Nasal Parser \n"
<< " | .-'_ _\\/ / \n"
<< " \\_/ a a| / \n"
<< " (,` \\ | .----. \n"
<< " | -' | /| '--. \n"
<< " \\ '= / || ]| `-. \n"
<< " /`-.__.' || ]| ::| \n"
<< " .-'`-.__ \\__ || ]| ::| \n"
<< " / `` `. || ]| ::| \n"
<< " _ | \\ \\ \\ \\| ]| .-' \n"
<< " / \\| \\ | \\ L.__ .--'( \n"
<< " | |\\ `. | \\ ,---|_ \\---------, \n"
<< " | | '. './\\ \\/ .--._|=- |_ /| \n"
<< " | \\ '. `'.'. /`\\/ .-' '. / | \n"
<< " | | `'. `;-:-;`)| |-./ | \n"
<< " | /_ `'--./_ ` )/'-------------')/) | \n"
<< " \\ | `\"\"\"\"----\"`\\//`\"\"`/,===..'`````````/ ( |\n"
<< " | | / `---` `===' / ) | \n"
<< " / \\ / / ( | \n"
<< " | '------. |'--------------------'| ) | \n"
<< " \\ `-| | / | \n"
<< " `--...,______| | ( | \n"
<< " | | | | ) ,| \n"
<< " | | | | ( /|| \n"
<< " | | | | )/ `\" \n"
<< " / \\ | | (/ \n"
<< " .' /I\\ '.| | /) \n"
<< " .-'_.'/ \\'. | | / \n"
<< " ``` `\"\"\"` `| .-------------------.|| \n"
<< " `\"` `\"` \n";
}
void parse::die(const span& loc, string info) {
err.err("parse", loc, info);
}