<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/datascript/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/datascript/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 27 Jun 2003 10:33:13 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/datascript/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Oracles and Functions - The Java Serialization Format</title><link>https://sourceforge.net/p/datascript/feature-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I would like to use datascript to parse the Java&lt;br /&gt;
serialization format produced by&lt;br /&gt;
java.io.ObjectOutputStream. I think, it is not possible to&lt;br /&gt;
specify this format with the current datascript&lt;br /&gt;
language. The main problems are the following:&lt;/p&gt;
&lt;p&gt;1. The parse process needs data that is not read from the&lt;br /&gt;
stream, but provided by the application context.&lt;/p&gt;
&lt;p&gt;2. The parse process needs to extract information from&lt;br /&gt;
already parsed data to proceed.&lt;/p&gt;
&lt;p&gt;The latter problem could be solved by adding user-defined&lt;br /&gt;
functions to the datascript specification that do the&lt;br /&gt;
extraction of the information from the context. Functions&lt;br /&gt;
are required to be state-less.&lt;/p&gt;
&lt;p&gt;Examples are the getType(), getElementType() and&lt;br /&gt;
getInheritanceDepth() functions in the attached&lt;br /&gt;
serialization format definition.&lt;/p&gt;
&lt;p&gt;The first problem could be solved by adding oracles to the&lt;br /&gt;
datascript language. Oracles are like functions, but they&lt;br /&gt;
are not required to be state-less. An oracle acts as an&lt;br /&gt;
additional data-source for data that is not parsed, but&lt;br /&gt;
provided by the application. Oracles are required to be&lt;br /&gt;
asked by the datascript parser in exacly the same order,&lt;br /&gt;
whether data is read selectively or not.&lt;/p&gt;
&lt;p&gt;Examples are the newHandle() and doReset() oracles in&lt;br /&gt;
the attached serialization format definition.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bernhard Haumacher</dc:creator><pubDate>Fri, 27 Jun 2003 10:33:13 -0000</pubDate><guid>https://sourceforge.netab38d45b45070a9a192744b88dd38f776d056f12</guid></item></channel></rss>