Re: compiling XPath to Scheme source code

"Oleg A. Paraschenko" <[email protected]> Mon, 22 Nov 2004 07:33:07 +0300
Newsgroups gmane.lisp.scheme.ssax-sxml
Organization xmlhack.ru
Message-ID <[email protected]>
  Hello Kirill,

  thank you for comments.

On Sat, 20 Nov 2004 00:42:38 -0500 (EST)
Kirill Lisovsky <[email protected]> wrote:

> Hello,
> 
> please drop a look at latest SXPath in SF CVS.
> 
> Please note that it generates an abstract syntax tree for XPath (and a
> subset of XPointer).

  I use "xpath-ast.scm".

> 
> If we parse XPath to something intended for rewriting/optimization
> (or even transformation to another language, in your case), then this
> intermediate representation has no need to be an evaluatable Scheme
> code...

  I agree with it.

> 
> OTH, some Scheme code may be used for AST representation (SXPath uses
> S-expressions).
> Even more: it's possible to design such an AST in a
> fashion which will allow it's direct evaluation - it may generate the
> query-processing code, for example.

  It is very near to what I have done. My S-expressions are Scheme
programs on the one side, and AST-like expressions on the others side.

> 
> Best regards,
>          Kirill.
> 


-- 
Oleg Paraschenko


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/