Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. for (pair<const string, unordered_set<vector<string>>>& productionpair : cfg.getProductions())
  2. {
  3. unordered_set<vector<string>> meme = productionpair.second;
  4. for (vector<string>& body : meme)
  5. {
  6. for (auto& body_part : body)
  7. {
  8. if (cfg.getTerminals().find(body_part) != cfg.getTerminals().end())
  9. {
  10. body_part = terminal_prefix + body_part;
  11. }
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement