Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: valuetype generators



Ruslan,


Ruslan Shevchenko wrote:


...


IMHO, it is work for simple perl script. Parsing techniques is overkill there.

something in style

$*=~/\/\/is.read_value(val);/is_read_value(val)/;
$*=~/throw new org.omg.CORBA.NO_IMPLEMENT();/\/\/throw new 
org.omg.CORBA.NO_IMPLEMENT();/;


Keep in mind that you're assuming something about the lexical
programming style used by the source code's author. If you want to be
generic, you must accommodate arbitrary whitespace between tokens and
even comments placed anywhere whitespace might occur. For example, I
occasionally must split lines at a ".", and that would break your
first targeting RE.

Randall Schulz




<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.