HTMLify

main.c
Views: 1 | Author: abh
#include "tokens.h"
#include "parser.h"
#include <stdio.h>
#include <string.h>

int main() {
    // test
    
    // printf(">> %s\n", execute_command("int this"));
    // printf(">> %s\n", execute_command("this = 3"));
    // printf(">> %s\n", execute_command("print this"));
    
    // printf("\n");

    // printf(">> %s\n", execute_command("int that"));
    // printf(">> %s\n", execute_command("that = 5"));
    // printf(">> %s\n", execute_command("print that"));
    // printf(">> %s\n", execute_command("this = this + that"));
    // printf(">> %s\n", execute_command("print this"));
    

    char command[64];

    while (true) {
        printf(">> ");
        scanf("%63[^\n]%*c", command);
        // printf("<< %s\n", command);
        printf(">> %s\n", execute_command(command));
    }


    return 0;
}

Comments