Re: RPN calculator

2002-01-22 Thread Ian Phillipps
On Tue, 22 Jan 2002 at 10:21:13 +0100, Philippe 'BooK' Bruhat wrote: En réponse à Simon Cozens [EMAIL PROTECTED]: So, who's gonna go to the obvious next level and give us an ofuscated FORTH implementation, plus a decent JAPH in FORTH? Well... That was the reason why I first tried to

Re: RPN calculator

2002-01-22 Thread Rafael Garcia-Suarez
On 2002.01.22 00:43 Peter Scott wrote: Seems that it can be extended to arbitrary operators without losing any conciseness: #!/usr/bin/perl -l for(@ARGV){push@s,$_ and next if/\d/;/^p/print$s[-1]and next;eval\$s[-2]$_=pop\@s||die!} $ ./foo 5 9 + p 3 % 5 / p 9 '**' p 14 0.4

Re: match URI and nothing more?

2002-01-22 Thread Bill Jones
Hmmm, on Abigail's protocol matcher I get: File TRJ:Users:sneex:Desktop:HellMatch; Line 24: /:http://(/: unmatched () in regexp Could it be too complex for BBEdit (651 on OSX) ? Nope, I tried the debugger and it says the same thing... ??? -Sx- :]

Re: match URI and nothing more?

2002-01-22 Thread Bill Jones
Nope, I tried the debugger and it says the same thing... Did you grab all 107 lines of the regex? What character did you use as the delimiter? :) Please allow me to correct myself - I am not doubting that Abigail's code is right - I obviously am not reconstructing it correctly. I

Re: match URI and nothing more?

2002-01-22 Thread Ronald J Kimball
On Tue, Jan 22, 2002 at 08:59:51AM -0800, Big D wrote: Bill, This is commonly referred to as 'leaning toothpick syndrome' (LTS). The problem is that you're using / as your regex delimiter AND you're not escaping it in your regex. Change your delimiter to something NOT in your regex, like @

Re: match URI and nothing more?

2002-01-22 Thread Bill Jones
Kill me :( The m{} got it :) Don't know why I am so 'think skulled' today :/ BTW - Editing the 7500+ byte puppy was not so easy; BBEdit doesn't play well after 5,500 bytes per line :( Thx! -Sx- :]