<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 1: Provide Interpreter nodes for common</title><link>https://sourceforge.net/p/simpleparse/feature-requests/1/</link><description>Recent changes to 1: Provide Interpreter nodes for common</description><atom:link href="https://sourceforge.net/p/simpleparse/feature-requests/1/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 02 Jul 2002 23:58:24 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simpleparse/feature-requests/1/feed.rss" rel="self" type="application/rss+xml"/><item><title>Provide Interpreter nodes for common</title><link>https://sourceforge.net/p/simpleparse/feature-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Make the common library provide interpreter nodes for&lt;br /&gt;
the common data types, such that each node is a&lt;br /&gt;
callable item that returns a value&lt;br /&gt;
(re-entrant/thread-safe) and can be included as an&lt;br /&gt;
instance/object in a Parser namespace.&lt;/p&gt;
&lt;p&gt;from simpleparse.common import strings, numbers&lt;br /&gt;
class MyParser( Parser ):&lt;br /&gt;
string = strings.StringInterpreter()&lt;br /&gt;
number = numbers.NumerInterpreter()&lt;/p&gt;
&lt;p&gt;Such that, if we include the production, we can also&lt;br /&gt;
include a stand-alone interpreter that converts the&lt;br /&gt;
value to a usable Python value.  Obviously that's only&lt;br /&gt;
useful for simple data types, but it would make for&lt;br /&gt;
easier use of the libraries (and avoid poluting the&lt;br /&gt;
user's parser class with sub-production rules).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike C. Fletcher</dc:creator><pubDate>Tue, 02 Jul 2002 23:58:24 -0000</pubDate><guid>https://sourceforge.net29a5a4d1638324b86a884feda23627acfbfec907</guid></item></channel></rss>