After looking at the BNF in more detail, I have a couple of questions: 1. Do you plan to provide definitions (regular expressions?) for the <name>, <uc_name>, <naked_string>, and <quoted_string> elements?
2. Shouldn't the definition for <parameters> be recursive, e.g., <parameter> "," <parameters> instead of <parameter> "," <parameter>? And if so, is <optional_comma> really needed? 3. Any further thoughts on what a suitable regular expression for <type> might be? Thanks, Kenn On Dec 20, 1:52 pm, Kenn Hussey <[email protected]> wrote: > Luke, > > From the looks of things, this is quite relevant to the Puppet-related > work we're doing at Cloudsmith (see Henrik Lindberg's recent post to > the users group). We'd definitely like to help out, especially on the > Java front (most of our work is currently in Java). We've started > working with the BNF definition and will report back as soon as we > have something interesting to share. > > Cheers, > > Kenn > > On Dec 2, 1:18 am, Luke Kanies <[email protected]> wrote: > > > > > Hi all, > > > Some have already noticed this, but I've begun a project to define and > > produce a minimal data-focused subset of Puppet's language, just like JSON > > is a data-focused subset of Javascript. I had initially called it MPF (for > > Minimal Puppet Format), but we've decided to use our internal name for it - > > p(0), or pzero: > > >https://github.com/lak/pzero > > > The only thing there so far is Jordan Sissel's work getting a Ragel parser > > to work, along with my attempt at a BNF definition. My hope is to have > > implementations in many languages: > > > * Ruby > > * Python > > * C > > * Javascript > > * Java > > > And I'd like each of these to be able to both parse and generate the format. > > > Jesse Wolfe first came up with this idea, and our goal is to have a > > language that any project or tool can use to describe desired system state. > > I'm especially interested in having tools for converting to and from > > existing data formats, like the rpm and dpkg manifest formats. > > > So anyway, if this is interesting to you, I'd love help on it. We're still > > in the formative stages of what it is and what it would do, but we're > > pretty excited by the potential. One of the things we clearly need to > > develop is a list of example files that each implementation could test > > against. > > > -- > > Tradition is what you resort to when you don't have the time or the > > money to do it right. -- Kurt Herbert Alder > > --------------------------------------------------------------------- > > Luke Kanies -|- http://puppetlabs.com -|- +1(615)594-8199 -- 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.
