Fix breakpoint bug

This commit is contained in:
2018-10-08 17:01:16 +02:00
parent e42d978207
commit d7b090861d
4 changed files with 7 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ char *colortheme[] = {
"\e[1;32m-\e[0m", // green - "\e[1;32m-\e[0m", // green -
"\e[1;31m.\e[0m", // red . "\e[1;31m.\e[0m", // red .
"\e[1;31m,\e[0m", // red , "\e[1;31m,\e[0m", // red ,
"\e[1;31m#\e[0m", // red #
}; };
// Colorize instructions // Colorize instructions
@@ -85,6 +86,9 @@ char *colorize(char c)
case ',': case ',':
cs = colortheme[7]; cs = colortheme[7];
break; break;
default:
cs = colortheme[8];
break;
} }
return cs; return cs;
@@ -359,6 +363,9 @@ int main(int argc, char* argv[])
// try to interpret it // try to interpret it
bfuck_execute(&bf); bfuck_execute(&bf);
// test
printf("\n");
// exit // exit
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }

View File

@@ -1 +0,0 @@
,>,[<+>-]------------------------------------------------.