webpage/main.c

23 lines
334 B
C
Raw Permalink Normal View History

#include "config.h"
#include "page.h"
2023-12-31 14:54:14 +01:00
#include "lexer.h"
2024-01-04 19:36:30 +01:00
#include "eval.h"
2023-12-30 14:30:29 +01:00
int main(int argc, char* argv[]){
getUserConfig(argc, argv);
2023-12-30 14:09:04 +01:00
getPage();
2024-01-04 22:33:20 +01:00
//printPage();
2024-01-02 20:53:15 +01:00
Token* token = NULL;
do {
2023-12-31 14:54:14 +01:00
token = nexttoken();
2024-01-04 19:36:30 +01:00
evaluate(token);
2024-01-03 03:22:27 +01:00
} while (token != NULL && token->type != END_HTML);
2023-12-31 14:54:14 +01:00
2024-01-04 19:36:30 +01:00
printf("\n");
2023-12-29 14:13:05 +01:00
return 0;
}