Is there a formal grammar specification defined for the Puppet language (e.g. EBNF)? Cameron. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
> Is there a formal grammar specification defined for the Puppet > language (e.g. EBNF)?how about looking into the code? http://github.com/reductivelabs/puppet/blob/master/lib/puppet/parser/grammar.ra cheers pete --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Oct 21, 2009, at 8:43 AM, Peter Meier wrote:> >> Is there a formal grammar specification defined for the Puppet >> language (e.g. EBNF)? > > how about looking into the code? > > http://github.com/reductivelabs/puppet/blob/master/lib/puppet/parser/grammar.raIn other words, just a yacc-style grammar, not BNF. -- Hollywood is a place where they''ll pay you a thousand dollars for a kiss and fifty cents for your soul. -- Marilyn Monroe --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
What are you trying to do? If you''re trying to extract stuff, I would recommend just hooking the puppet parser. Trevor On Wed, Oct 21, 2009 at 11:28, Cameron <cross@kojeware.com> wrote:> > Is there a formal grammar specification defined for the Puppet > language (e.g. EBNF)? > > Cameron. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, A parser grammar would be the best way for me to understand the scope of the Puppet language. Although not EBNF, Puppet''s yac-style grammar will certainly suffice. Thanks everyone. Cameron. On Fri, Oct 23, 2009 at 1:59 PM, Trevor Vaughan <peiriannydd@gmail.com>wrote:> > What are you trying to do? > > If you''re trying to extract stuff, I would recommend just hooking the > puppet parser. > > Trevor > > On Wed, Oct 21, 2009 at 11:28, Cameron <cross@kojeware.com> wrote: > > > > Is there a formal grammar specification defined for the Puppet > > language (e.g. EBNF)? > > > > Cameron. > > > > > > > > >-- Cameron Ross Director of Technology Kojeware Corporation 705-929-1492 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---