main.c
void magic() {
    if (streq(input+1, "help")) {
        printf("Magic commands:\n"
               "  $exit             Graceful exit from the interpreter.\n"
               "  $env              View global environment contents.\n"
               "  $run              Run script file.\n"
               "  $about            Info about the program.\n");

    } else if (streq(input + 1, "env")) {
        dict_print(global_env, 2);

    } else if (streq(input + 1, "exit")) {
        safe_free(input);
        globenv_del();
        exit(EXIT_SUCCESS);

    } else if (!strncmp(input + 1, "run ", 4)) {
        if (strlen(input) > 5)
            script(input + 5);

    } else if (streq(input+1, "about")) {
        printf("Alisp interpreter by Alex Baryzhikov.\n");

    } else {
        printf("Unrecognized command: %s\n", input + 1);
    }
}
/*
--------------------------------------
magic
    
    Run a magic command.
--------------------------------------
*/
magic
Run a magic command.
magic Run a magic command .
void magic() {
    if (streq(input+1, "help")) {
        printf("Magic commands:\n"
               "  $exit             Graceful exit from the interpreter.\n"
               "  $env              View global environment contents.\n"
               "  $run              Run script file.\n"
               "  $about            Info about the program.\n");
    } else if (streq(input + 1, "env")) {
        dict_print(global_env, 2);
    } else if (streq(input + 1, "exit")) {
        safe_free(input);
        globenv_del();
        exit(EXIT_SUCCESS);
    } else if (!strncmp(input + 1, "run ", 4)) {
        if (strlen(input) > 5)
            script(input + 5);
    } else if (streq(input+1, "about")) {
        printf("Alisp interpreter by Alex Baryzhikov.\n");
    } else {
        printf("Unrecognized command: %s\n", input + 1);
    }
}
void magic ( ) { if ( streq ( input + 1 , " " ) ) { printf ( " \n " " \n " " \n " " \n " " \n " ) ; } else if ( streq ( input + 1 , " " ) ) { dict_print ( global_env , 2 ) ; } else if ( streq ( input + 1 , " " ) ) { safe_free ( input ) ; globenv_del ( ) ; exit ( EXIT_SUCCESS ) ; } else if ( ! strncmp ( input + 1 , " " , 4 ) ) { if ( strlen ( input ) > 5 ) script ( input + 5 ) ; } else if ( streq ( input + 1 , " " ) ) { printf ( " \n " ) ; } else { printf ( " \n " , input + 1 ) ; } }
magic
Run a magic command.
magic Run a magic command .