W
wolfpack307
Hi all,
I am trying to use perl to parse a verilog file.
In trying to parse block comments, I am using am doing
while ($verilog=~s/(.*)\/\*.*(.*)/$1$2/) {}
This code does work for code that looks like this
/* comments
comments
comments */
However, if an codes look like the following (which is syntactically
correct in verilog), the script just hangs.
/* comments
/* comments
comments */
Would appreciate some advice.
Thanks in advance.
shuteng
I am trying to use perl to parse a verilog file.
In trying to parse block comments, I am using am doing
while ($verilog=~s/(.*)\/\*.*(.*)/$1$2/) {}
This code does work for code that looks like this
/* comments
comments
comments */
However, if an codes look like the following (which is syntactically
correct in verilog), the script just hangs.
/* comments
/* comments
comments */
Would appreciate some advice.
Thanks in advance.
shuteng