10 int main(int argc
, char *argv
[])
15 TRACE
= !!getenv("TRACE");
17 if (!PSI_ParserInit(&P
, argv
[1])) {
18 perror("Failer to init parser");
22 while (-1 != PSI_ParserScan(&P
)) {
23 PSI_ParserParse(&P
, PSI_TokenAlloc(&P
));
25 PSI_ParserParse(&P
, NULL
);
27 if (!PSI_ValidatorInit(&V
, &P
)) {
28 perror("Failed to init validator");
34 if (PSI_ValidatorValidate(&V
)) {
35 printf("Whoa! VALID.\n");
37 PSI_ValidatorDtor(&V
);