%{
#include <stdlib.h>
#include <stdio.h>
%}

%token SyntaxError
%token SemanticError


%%

entrada: 
	| entrada  linha
	;

linha:   '\n'
        | SyntaxError '\n' {printf("Syntax Error\n\n");}
        | SemanticError '\n' {printf("Semantic Error\n\n");}
	| error '\n' {yyerrok;}
	;


%%

main()
{
    yyparse();
}

yyerror(s)
char *s;
{
}
