Meta comments are no more printed to screen during compilation.
This commit is contained in:
parent
eba0efb878
commit
a302ea3911
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
------------------------
|
||||
|
||||
|
|
Reference in New Issue
Block a user