<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/datascript/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/datascript/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/datascript/feature-requests/</id><updated>2003-06-27T10:33:13Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Oracles and Functions - The Java Serialization Format</title><link href="https://sourceforge.net/p/datascript/feature-requests/1/" rel="alternate"/><published>2003-06-27T10:33:13Z</published><updated>2003-06-27T10:33:13Z</updated><author><name>Bernhard Haumacher</name><uri>https://sourceforge.net/u/haui/</uri></author><id>https://sourceforge.netab38d45b45070a9a192744b88dd38f776d056f12</id><summary type="html">&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;</summary></entry></feed>