23 lines
549 B
C
23 lines
549 B
C
#include <stdio.h>
|
|
#include "shared/functions.h"
|
|
#include "shared/functions/synthaxcheck.c"
|
|
|
|
int main() {
|
|
char errors[6][30] = {
|
|
"none",
|
|
"unmatched round bracket",
|
|
"unmatched curly bracket",
|
|
"unmatched single quote",
|
|
"unmatched double quote",
|
|
"unmatched square bracket"
|
|
};
|
|
int result;
|
|
if ((result = synthaxcheck()) == 0) {
|
|
printf("No synthax errors found!\n");
|
|
return 0;
|
|
} else {
|
|
printf("Sythax error found at line %i column %i\nReason: %s\n", unmline, unmcol, errors[result]);
|
|
return result;
|
|
}
|
|
}
|