Print meta comments to stderr.

This commit is contained in:
Stefano Sanfilippo 2014-11-23 23:14:12 +01:00
parent 00ed9869ed
commit 43fee532b0

View File

@ -2,6 +2,7 @@
#include "Type.h"
#include "Monicelli.tab.h"
#include <stdlib.h>
#include <stdio.h>
extern int lineNumber;
extern void yyerror(const char *);
@ -20,7 +21,9 @@ CHAR [a-zA-Z_]
lineNumber += 1;
}
^"#"[^\n]* {}
"#"[^\n]* {
fprintf(stderr, "META: %s\n", yytext + 1);
}
"bituma"[^\n]* {}