about summary refs log tree commit diff stats
path: root/yandere.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-10 20:28:26 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-10 20:28:26 -0500
commit85476b21818c6f9880c5dfdaf21d5731c66df92f (patch)
treec0c4b4690bc199d1927d5f4e2b4c9142a86908bf /yandere.cpp
parent0f2802b3c8f3d1096df7ac483eba390ae952e13f (diff)
downloadyandere-85476b21818c6f9880c5dfdaf21d5731c66df92f.tar.gz
yandere-85476b21818c6f9880c5dfdaf21d5731c66df92f.tar.bz2
yandere-85476b21818c6f9880c5dfdaf21d5731c66df92f.zip
Added support for mixing a group into another
Diffstat (limited to 'yandere.cpp')
-rw-r--r--yandere.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/yandere.cpp b/yandere.cpp index b9d42ec..4edb550 100644 --- a/yandere.cpp +++ b/yandere.cpp
@@ -94,8 +94,15 @@ int main(int argc, char** argv)
94 if (line.empty()) 94 if (line.empty())
95 { 95 {
96 newgroup = true; 96 newgroup = true;
97 } else if (line.substr(0, 2) == "{*") {
98 std::string token = line.substr(2, line.find("}")-2);
99 for (const std::string& other : groups[token]) {
100 groups[curgroup].push_back(other);
101 std::cout << curgroup << " *" << token << ": " << other << std::endl;
102 }
97 } else { 103 } else {
98 groups[curgroup].push_back(line); 104 groups[curgroup].push_back(line);
105 std::cout << curgroup << ": " << line << std::endl;
99 } 106 }
100 } 107 }
101 } 108 }