Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
why "abc" / "abcd" doesn't match "abcd" ???
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Iñaki Baz Castillo  
View profile  
 More options Mar 19 2008, 6:20 am
From: "Iñaki Baz Castillo" <i...@aliax.net>
Date: Wed, 19 Mar 2008 11:20:59 +0100
Local: Wed, Mar 19 2008 6:20 am
Subject: why "abc" / "abcd" doesn't match "abcd" ???
Hi, I'm very annoyed, why the following rule doesn't match "abcd"?

        rule request
                'abc' / 'abcd'
        end

I've discovered that I must use:

        rule request
                'abcd' / 'abc'
        end

This is: the longest match first.

Please, any reason for this? is it pointed somewhere in the doc?

Thanks a lot.

--
Iñaki Baz Castillo
<i...@aliax.net>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Gamsjaeger  
View profile  
 More options Mar 19 2008, 10:40 am
From: "Martin Gamsjaeger" <gamsnj...@gmail.com>
Date: Wed, 19 Mar 2008 15:40:59 +0100
Local: Wed, Mar 19 2008 10:40 am
Subject: Re: why "abc" / "abcd" doesn't match "abcd" ???
Hi Iñaki,

Taken from treetop website:

Parsers attempt to match ordered choices in left-to-right order, and
stop after the first successful match.

"foobar" / "foo" / "bar"

Note that if "foo" in the above expression came first, "foobar" would
never be matched.

cheers
Martin

On Wed, Mar 19, 2008 at 11:20 AM, Iñaki Baz Castillo <i...@aliax.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Iñaki Baz Castillo  
View profile  
 More options Mar 19 2008, 10:51 am
From: "Iñaki Baz Castillo" <i...@aliax.net>
Date: Wed, 19 Mar 2008 15:51:01 +0100
Local: Wed, Mar 19 2008 10:51 am
Subject: Re: why "abc" / "abcd" doesn't match "abcd" ???
2008/3/19, Martin Gamsjaeger <gamsnj...@gmail.com>:

> Hi Iñaki,

>  Taken from treetop website:

>  Parsers attempt to match ordered choices in left-to-right order, and
>  stop after the first successful match.

>  "foobar" / "foo" / "bar"

>  Note that if "foo" in the above expression came first, "foobar" would
>  never be matched.

Opss, nice point. Thanks a lot, it's clear now.

--
Iñaki Baz Castillo
<i...@aliax.net>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »