Fix breakpoint bug
This commit is contained in:
7
bfckr.c
7
bfckr.c
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
,>,[<+>-]------------------------------------------------.
|
|
||||||
Reference in New Issue
Block a user