Meta comments are no more printed to screen during compilation.

This commit is contained in:
Stefano Sanfilippo 2015-03-05 00:59:33 +01:00
parent eba0efb878
commit a302ea3911
2 changed files with 1 additions and 16 deletions

View File

@ -23,8 +23,6 @@
#include <string>
static void meta(const char *);
using namespace monicelli;
typedef Parser::token token;
@ -49,11 +47,7 @@ CHAR [a-zA-Z_]
%%
"#"[^\n]* {
meta(yytext + 1);
}
"bituma"[^\n]* {}
("#"|"bituma")[^\n]* {}
"Lei ha clacsonato" {
return token::MAIN;
@ -214,10 +208,3 @@ CHAR [a-zA-Z_]
%%
void meta(const char *text) {
while (*text != '\0' && *text == ' ') {
text += 1;
}
std::cerr << "META: " << text << std::endl;
}

View File

@ -400,8 +400,6 @@ a long "supercazzola". Also, ordinary comments can and should be used in an
improper way to fill the sentence, meta comments provide a mechanism for
distiguishing "real" comments.
In addition to that, meta comments are printed to `stderr` during compilation.
Reserved words and phrases
------------------------