Skip to content

Commit 760132a

Browse files
committed
Verilog: class scope operator
This add the System Verilog class scope operator ::.
1 parent c2851f1 commit 760132a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/verilog/parser.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ int yyverilogerror(const char *error)
421421
%token TOK_LESSLESSLESSEQUAL "<<<="
422422
%token TOK_GREATERGREATERGREATEREQUAL ">>>="
423423
%token TOK_HASHHASH "##"
424+
%token TOK_COLONCOLON "::"
424425

425426
/* System Verilog Keywords */
426427
%token TOK_ACCEPT_ON "accept_on"

src/verilog/scanner.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ void verilog_scanner_init()
247247
"<->" { SYSTEM_VERILOG_OPERATOR(TOK_LESSMINUSGREATER, "<->"); }
248248
"->" { SYSTEM_VERILOG_OPERATOR(TOK_MINUSGREATER, "->"); }
249249
"'" { SYSTEM_VERILOG_OPERATOR('\'', "'"); }
250+
"::" { SYSTEM_VERILOG_OPERATOR(TOK_COLONCOLON, "::"); }
250251

251252
/* Verilog keywords */
252253

0 commit comments

Comments
 (0)