Hi,

I have been using Ply for some time now in two projects:
  - an ISIS formatting language compiler [1]
  - an IEC 61131 compiler for SFC and ST languages.

Ply is wonderfull ! Thanks a lot.

For the latter project, I needed to start yacc() at different
productions.
I noticed that the 'start' parameter  is just what I needed, but it is
unused.
Therefore, I did the following crude patch to yacc.py (version 3.0):

-         grammar.set_start(pinfo.start)

+        if start is not None:
+           grammar.set_start(start)
+        else:
+           grammar.set_start(pinfo.start)

This feature was disabled intentionally ? Can I use this patch
safely ?

[1] http://reddes.bvsalud.org/projects/isisnbp
[2] http://en.wikipedia.org/wiki/IEC_61131-3

best regards,
Rod Senra
--~--~---------~--~----~------------~-------~--~----~
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