Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sscode << (color?IWHITE:"") << i << (color?RESET:"") << ": ";
- for(auto b : a)
- {
- bool isregister = [](auto machine, auto b)
- {
- if(machine->registers.count(b) == 0)
- return false;
- return true;
- }(machine, b);
- sscode << (color?((c)?
- ((b[0] == '\"')? RED:
- (isregister?
- CYAN:RESET)):
- IGREEN):
- "")<< b << RESET << ((c>=1&&c!=a.size()-1) ? ", " : " ");
- c++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement