Merge pull request #16 from Servostar/11-make-yyerror-use-error
added printing of the string of `yyerror` with `ERROR`
This commit is contained in:
commit
5a519ab8a7
|
@ -1,4 +1,5 @@
|
|||
%{
|
||||
#include <sys/log.h>
|
||||
extern int yylineno;
|
||||
|
||||
int yyerror(char*);
|
||||
|
@ -11,5 +12,6 @@ program: ;
|
|||
%%
|
||||
|
||||
int yyerror(char *s) {
|
||||
ERROR("%s", s);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue