On Tue, Feb 26, 2008 at 1:44 AM, Danek Duvall <[EMAIL PROTECTED]> wrote:
>  > For example, suppose that we have something tagged as such:
>  >
>  >                 file path=/usr/bin/hostname arch=386 version=1.0
>  >
>  > Should arch=386 & version=1 match the first line?
>  >
>  > Or, should the first line only match if arch=386 & version=1.0?
>
>  The latter.  All attribute values are considered strings; the reason that
>  numerics don't work right now is because Python identifiers can't start
>  with a number.
>
>  This means that parsing an attribute like "3ufw355" will be tough, since
>  it's neither a number nor an identifier.  Which is one reason that we may
>  not be able to use the Python parser to do this.
>
>  I'm planning on extending the language to allow for substring matches, or
>  something similar, but again, that'll be tons easier with a lower-level
>  parser.

For some reason I didn't run into this issue when modifying the token parser.

It did cause headaches because python split it up into a combination
of token.NUMBER and token.NAME types, but in the end, this case seems
to work fine now.

So, with my recent proposed change, 386=true works fine, as an example.

Cheers,
-- 
Shawn Walker, Software and Systems Analyst
http://binarycrusader.blogspot.com/

"To err is human -- and to blame it on a computer is even more so." -
Robert Orben
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to