| | RE: Whitespace and comment remover in perl Ralph Hempel
|
| | (...) <snipped script> Carsten, This is a good start. Here's my comments on each of the regexp lines... By the way, my Tcl script handles most of this stuff properly, but I'm waiting until the new year to develop XMODEM uploads for it.... (...) (25 years ago, 15-Dec-99, to lugnet.robotics.rcx.pbforth)
|
| | |
| | | | Re: Whitespace and comment remover in perl Carsten Müller
|
| | | | (...) Your statement of the LONGEST match may be correct for TCL but not for perl! look at the second regexp: the '?' inside means expand to the smallest match ( this is a perl specialty i think) the only thing is, if you nest comments like ( (...) (25 years ago, 15-Dec-99, to lugnet.robotics.rcx.pbforth)
|
| | | | |
| | | | | | RE: Whitespace and comment remover in perl Ralph Hempel
|
| | | | (...) OOPS! I guess that those pesky regexps are not for the faint of heart. The new Tcl standard also allows you to specify less greedy regexps. The nesting of comments as you suggest is illegal FORTH anyways. It only specifies that a close comment (...) (25 years ago, 15-Dec-99, to lugnet.robotics.rcx.pbforth)
|
| | | | |
| | | | | | Re: Whitespace and comment remover in perl Carsten Müller
|
| | | | (...) :) (...) unfortunately i've broken my palm III by stepping on it. (25 years ago, 15-Dec-99, to lugnet.robotics.rcx.pbforth)
|
| | | | |