[XML-SIG] PyXPath 1.1

Mike Olson Mike.Olson@fourthought.com
Fri, 15 Dec 2000 07:48:28 -0700


uche.ogbuji@fourthought.com wrote:
> 
> Wow Martin!  Brilliant work as usual.  Last weekend Jeremy quietly wrote a
> partial XPath lexer all in Python/SRE.  We'll try to bind it to bison and post
> this today so you can run your test harness on it.

Yes, thanks Martin this saves us a lot of time.  Question, will it
handle "mod mod mod" or "* * *"?  These needs to translate to the token
wildcard name, operator, wildcard name.  I ask 'cause this caused us
many headaches with 4XPath.  We had to do it with flex state.

> 
> Maybe it's worth designing a plug-in API for XPath implementations so people
> can make their choices.

This wouldn't be that difficult.  A simple interface to get a list of
tokens(and the matched string) from the scanner would suffice.  We will
need some logic to turn this list into YY unions for Bison, but that is
pretty simple as well.

Mike

> 
> --
> Uche Ogbuji                               Principal Consultant
> uche.ogbuji@fourthought.com               +1 303 583 9900 x 101
> Fourthought, Inc.                         http://Fourthought.com
> 4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
> Software-engineering, knowledge-management, XML, CORBA, Linux, Python
> 
> _______________________________________________
> XML-SIG maillist  -  XML-SIG@python.org
> http://www.python.org/mailman/listinfo/xml-sig

-- 
Mike Olson				 Principal Consultant
mike.olson@fourthought.com               (303)583-9900 x 102
Fourthought, Inc.                         http://Fourthought.com 
Software-engineering, knowledge-management, XML, CORBA, Linux, Python