Re: Using perl to parse verilog
- From: wolfpack307@xxxxxxxxx
- Date: 27 Nov 2006 04:14:50 -0800
typo error
while ($verilog=~s/(.*)\/\*.*\*\/(.*)/$1$2/s) {}
wolfpack307@xxxxxxxxx wrote:
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
.
- Follow-Ups:
- Re: Using perl to parse verilog
- From: J. Gleixner
- Re: Using perl to parse verilog
- References:
- Using perl to parse verilog
- From: wolfpack307
- Using perl to parse verilog
- Prev by Date: How to get the DOM from a XML page
- Next by Date: FAQ 2.3 I don't have a C compiler. How can I build my own Perl interpreter?
- Previous by thread: Using perl to parse verilog
- Next by thread: Re: Using perl to parse verilog
- Index(es):