From 43fee532b0cf54d85243aca4bcb18027146d5487 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Sun, 23 Nov 2014 23:14:12 +0100 Subject: [PATCH] Print meta comments to stderr. --- Monicelli.ll | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Monicelli.ll b/Monicelli.ll index 320dedb..f139028 100644 --- a/Monicelli.ll +++ b/Monicelli.ll @@ -2,6 +2,7 @@ #include "Type.h" #include "Monicelli.tab.h" #include +#include 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]* {}