I have made a patch to PLY to allow parsing tables to be stored using  
pickle.  You use it like this:

          yacc(picklefile="parsetab.p")         # (or use some other  
filename)

If supplied, this disables the normal table writing/reading to .py  
files.    If you get a chance, take a look at this and let me know if  
it works.   Right now, this work can be obtained in the PLY subversion  
repository (instructions available on the PLY page).

Cheers,
Dave

On Mar 20, 2009, at 9:04 AM, Nuno Lopes wrote:

>
> This would be great to have!  Is it doable? I can also try to lend a
> hand if necessary.
>
> regards,
> --
> Nuno Lopes
>
> On Fri, Mar 20, 2009 at 12:52 PM, David Beazley <[email protected]>  
> wrote:
>> I'm almost wondering if PLY should just write the tables out as a  
>> pickle or
>> something.   Someone already patched it to do something similar.    
>> I could
>> certainly make an option for doing it.   Open to ideas on this.
>>
>> Cheers,
>> Dave
>>
>> On Mar 20, 2009, at 7:45 AM, Nuno Lopes wrote:
>>
>>>
>>> Hello,
>>>
>>> As a last resort to solve this: is there a way to modularize the
>>> generated code on parsetab.py?  Mostly wishful thinking here I would
>>> assume there isn't!
>>>
>>> Thanks a lot,
>>> --
>>> Nuno Lopes
>>>
>>> On Sun, Mar 15, 2009 at 5:53 PM, Nuno Lopes
>>> <[email protected]> wrote:
>>>>
>>>> Hi,
>>>>
>>>>
>>>> On 14 Mar 2009, at 03:34, David Beazley wrote:
>>>>
>>>>> Having looked at the parsetab.py file on this, this might be a
>>>>> possibility.   The file is pretty big and has some extremely long
>>>>> unbroken
>>>>> lines in it.   Maybe it's bumping up against some kind of line- 
>>>>> length
>>>>> limit
>>>>> or something.   Very interesting.
>>>>
>>>>
>>>> The size of the file seems to be problem,  from the jython list I  
>>>> got
>>>> this
>>>> reply:
>>>>
>>>> The generated Java method is too big for the JVM to handle.
>>>>
>>>>  <http://bugs.jython.org/issue527524>
>>>>
>>>>
>>>>
>>>> --
>>>> Nuno Lopes
>>>>
>>>
>>>>>
>>
>>
>
>
>
> -- 
> Nuno Lopes
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ply-hack" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ply-hack?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to