Maybe. What does the parser.out file say about it? The first state should indicate the start rule.
-Dave On Feb 20, 2009, at 9:31 AM, eliben wrote: > > On Feb 20, 5:23 pm, David Beazley <[email protected]> wrote: >> I wonder if this some kind of sorting issue. PLY normally tries to >> sort the productions in order by line-number. Maybe things are >> getting sorted in a weird order and the grammar is starting with an >> unexpected rule. That's the only thing I can think of offhand. >> > > I had the sorting problem with PLY-2.5, so I used the 'start' argument > to yacc to explicitly specify the starting rule, thus: > > self.cparser = ply.yacc.yacc( > module=self, > start='translation_unit', > debug=yacc_debug, > optimize=yacc_optimize, > tabmodule=yacctab) > > Perhaps this doesn't function any more? > > Eli > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
