From a302ea39112101a3738b5d0cfaaeed74067fa5ed Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Thu, 5 Mar 2015 00:59:33 +0100 Subject: [PATCH] Meta comments are no more printed to screen during compilation. --- Monicelli.lpp | 15 +-------------- README.md | 2 -- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/Monicelli.lpp b/Monicelli.lpp index bb67002..3b46f1f 100644 --- a/Monicelli.lpp +++ b/Monicelli.lpp @@ -23,8 +23,6 @@ #include -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; -} - diff --git a/README.md b/README.md index 7bc5d1e..76ff2b9 100644 --- a/README.md +++ b/README.md @@ -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 ------------------------