<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to support-requests</title><link href="https://sourceforge.net/p/byacc/support-requests/" rel="alternate"/><link href="https://sourceforge.net/p/byacc/support-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/byacc/support-requests/</id><updated>2003-03-31T13:34:51Z</updated><subtitle>Recent changes to support-requests</subtitle><entry><title>Fix -Y option</title><link href="https://sourceforge.net/p/byacc/support-requests/2/" rel="alternate"/><published>2003-03-31T13:34:51Z</published><updated>2003-03-31T13:34:51Z</updated><author><name>Siebren van der Zee</name><uri>https://sourceforge.net/u/siebrenzee/</uri></author><id>https://sourceforge.net2303ad954e317d5040fae215f355e28dbdee9d2b</id><summary type="html">&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;</summary></entry><entry><title>Can not import into CVS</title><link href="https://sourceforge.net/p/byacc/support-requests/1/" rel="alternate"/><published>2000-11-01T07:34:47Z</published><updated>2000-11-01T07:34:47Z</updated><author><name>Bruce Bahnsen</name><uri>https://sourceforge.net/u/bbahnsen/</uri></author><id>https://sourceforge.netc20dbf7c616a48b7a06114516a6d68815263292b</id><summary type="html"/></entry></feed>