summaryrefslogtreecommitdiff
path: root/frontends/verilog/lexer.l
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-22 12:46:02 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-22 12:46:02 +0100
commite4429c480ea224ab9b5b0a98dbf5d9661a291b11 (patch)
tree2f9ae640eff584aaacaae57ca47538a034541962 /frontends/verilog/lexer.l
parent18d003254ccdca6fd9cbfe59b7b27007873a26be (diff)
Enable {* .. *} feature per default (removes dependency to REJECT feature in flex)
Diffstat (limited to 'frontends/verilog/lexer.l')
-rw-r--r--frontends/verilog/lexer.l8
1 files changed, 2 insertions, 6 deletions
diff --git a/frontends/verilog/lexer.l b/frontends/verilog/lexer.l
index 353f0a79..a0deb755 100644
--- a/frontends/verilog/lexer.l
+++ b/frontends/verilog/lexer.l
@@ -45,7 +45,6 @@ using namespace VERILOG_FRONTEND;
namespace VERILOG_FRONTEND {
std::vector<std::string> fn_stack;
std::vector<int> ln_stack;
- bool lexer_feature_defattr;
}
%}
@@ -82,9 +81,6 @@ namespace VERILOG_FRONTEND {
"`timescale"[ \t]+[^ \t\r\n/]+[ \t]*"/"[ \t]*[^ \t\r\n]* /* ignore timescale directive */
-"`yosys_enable_defattr" lexer_feature_defattr = true;
-"`yosys_disable_defattr" lexer_feature_defattr = false;
-
"`"[a-zA-Z_$][a-zA-Z0-9_$]* {
frontend_verilog_yyerror("Unimplemented compiler directive or undefined macro %s.", yytext);
}
@@ -225,8 +221,8 @@ supply1 { return TOK_SUPPLY1; }
"(*" { return ATTR_BEGIN; }
"*)" { return ATTR_END; }
-"{*" { if (lexer_feature_defattr) return DEFATTR_BEGIN; else REJECT; }
-"*}" { if (lexer_feature_defattr) return DEFATTR_END; else REJECT; }
+"{*" { return DEFATTR_BEGIN; }
+"*}" { return DEFATTR_END; }
"**" { return OP_POW; }
"||" { return OP_LOR; }