<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to support-requests</title><link>https://sourceforge.net/p/byacc/support-requests/</link><description>Recent changes to support-requests</description><atom:link href="https://sourceforge.net/p/byacc/support-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 31 Mar 2003 13:34:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/byacc/support-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Fix -Y option</title><link>https://sourceforge.net/p/byacc/support-requests/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I saw that using the -Y option won't result in a&lt;br /&gt;
working parser in python. The problem appears to be the&lt;br /&gt;
nature of the yyparser() function jumping back and&lt;br /&gt;
forth, and of the way an yyerror macro is supposed to&lt;br /&gt;
work.  Nice to see these problems can be overcome in&lt;br /&gt;
perl, where at least you can name loops.&lt;/p&gt;
&lt;p&gt;In python, you'll need some more trickery.  The&lt;br /&gt;
attached file demonstrates a possible approach.&lt;/p&gt;
&lt;p&gt;One more thing you need to know: the function below&lt;br /&gt;
assigns to a local variable.  When the function&lt;br /&gt;
returns, the local variable is discarded:&lt;br /&gt;
def yyclearin():&lt;br /&gt;
yychar = -1&lt;br /&gt;
In python, all lvariables that you assign to are local,&lt;br /&gt;
unless&lt;br /&gt;
explicitely state otherwise.  It should be like this:&lt;br /&gt;
def yyclearin():&lt;br /&gt;
global yychar&lt;br /&gt;
yychar = -1&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Siebren van der Zee</dc:creator><pubDate>Mon, 31 Mar 2003 13:34:51 -0000</pubDate><guid>https://sourceforge.net2303ad954e317d5040fae215f355e28dbdee9d2b</guid></item><item><title>Can not import into CVS</title><link>https://sourceforge.net/p/byacc/support-requests/1/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bruce Bahnsen</dc:creator><pubDate>Wed, 01 Nov 2000 07:34:47 -0000</pubDate><guid>https://sourceforge.netc20dbf7c616a48b7a06114516a6d68815263292b</guid></item></channel></rss>