|
|
@ -16,6 +16,7 @@ |
|
|
|
#include "runtime0.h" |
|
|
|
#include "runtime.h" |
|
|
|
#include "repl.h" |
|
|
|
#include "build/py/py-version.h" |
|
|
|
|
|
|
|
#if MICROPY_USE_READLINE |
|
|
|
#include <readline/readline.h> |
|
|
@ -117,6 +118,9 @@ static char *prompt(char *p) { |
|
|
|
} |
|
|
|
|
|
|
|
static void do_repl(void) { |
|
|
|
printf("Micro Python build " MICROPY_GIT_HASH " on " MICROPY_BUILD_DATE "; Windows version\n"); |
|
|
|
printf("Type \"help()\" for more information.\n"); |
|
|
|
|
|
|
|
for (;;) { |
|
|
|
char *line = prompt(">>> "); |
|
|
|
if (line == NULL) { |
|
|
|