Bart Lateur writes: > I don't get it. What makes it so hard? If you see a "/" when you're > expecting an operator, or end of statement, then it's division. If you > were expecting an expression, it's a regex. Ain't it? We're talking tokenizing vs parsing. If I'm just getting back a sequence of chunks, I haven't kept track of whether: /3*5/ is part of $x/3*5 (in which case the tokens are /, 3, and /), or if (/3*5/) (in which case the tokens might well be /, 3*5, and /). Making sense of tokens is what a parser does. In theory. If we can break a couple of these nasty incestuosities between parser and tokenizer, we can make it possible to tokenize Perl without having to parse as well. Nat
- Re: RFC 135 (v2) Require explicit m on matches, even w... Bart Lateur
- Re: RFC 135 (v2) Require explicit m on matches, e... Carl Johan Berglund
- Re: RFC 135 (v2) Require explicit m on matches, even w... Nathan Torkington
- Re: RFC 135 (v2) Require explicit m on matches, e... Tom Christiansen
- Re: RFC 135 (v2) Require explicit m on matche... John Porter
- Re: RFC 135 (v2) Require explicit m on matche... Peter Scott
- Re: RFC 135 (v2) Require explicit m on matche... Tom Christiansen
- Re: RFC 135 (v2) Require explicit m on matche... Nathan Torkington
- Re: RFC 135 (v2) Require explicit m on matche... Nathan Torkington
- Re: RFC 135 (v2) Require explicit m on matche... Bart Lateur
- Re: RFC 135 (v2) Require explicit m on matche... Nathan Torkington
- Re: RFC 135 (v2) Require explicit m on matche... Tom Christiansen
- Re: RFC 135 (v2) Require explicit m on matche... Casey R. Tweten
- Re: RFC 135 (v2) Require explicit m on matche... Nathan Wiger
- Re: RFC 135 (v2) Require explicit m on matche... John Porter
- Re: RFC 135 (v2) Require explicit m on matche... Bart Lateur
- Re: RFC 135 (v2) Require explicit m on matche... John Porter
- New match and subst replacements for =~ and !... Nathan Wiger
- Re: New match and subst replacements for =~ a... Randy J. Ray
- Re: New match and subst replacements for =~ a... Nathan Wiger
- Re: New match and subst replacements for =~ a... Bart Lateur