Re: compiling XPath to Scheme source code
Kirill Lisovsky <[email protected]> Sat, 20 Nov 2004 00:42:38 -0500 (EST)
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <Pine.LNX.4.58.0411192256080.18431@ant> |
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).
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...
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.
Best regards,
Kirill.
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8