On Sep 22, 2009, at 12:21 AM, Brice Figureau wrote: > > On Tue, 2009-09-22 at 07:31 +0100, Paul Nasrat wrote: >> 2009/9/21 Brice Figureau <[email protected]>: >>> >>> This is a temporary fix for 0.25.1. >>> Unfortunately I don't have any good/better fix for this problem >>> except adding >>> once again more parsing in the lexer (ie remember if the previous >>> token >>> is a token that can be followed by a :REGEX token). >>> >>> Frankly, the real fix would be to move to a PEG parser or anything >>> not >>> LALR(1) :-( >> >> Are you thinking about TreeTop? > > Basically yes. It seems to be the only ruby supported PEG parser (I > was > interested by Grammar but it doesn't seem to be actively maintained). > But I'm afraid of the performances... and the amount of work to > convert > our existing large grammar. > > Did you use it?
I don't know much about these alternative parsers, but I've also heard a lot about ANTLR. Neither was available when I first wrote Puppet, unfortunately. I'm a bit skeptical that the right answer to a lexing problem is to change parsing architectures, though. -- If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you. -- Don Marquis --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" 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/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
