Hi,

The more I think about that patch, the more I think I should expand it 
to a more generic expression parser/evaluator by adding arithmetic 
operators and such, so that we could write these stupid things:

class superfeaturethatneedsplentyofram {
   $min_ram = 2048 * 1024 * 1024
   if ($ram / (1024*1024) < $min_ram) {
     notice("not enough ram on node ${fqdn}")
   }
}

I already started coding this in fact and I'm wondering if that's 
something that:
  * is needed (I never myself got the need)
  * would be welcome

Anyway, that's an interesting exercise (mainly due to the lack or racc 
documentation or examples). Right now I'm struggling with shift/reduce 
conflicts I don't really know how to solve (anyone familiar with LALR 
parsers lurking here, please I welcome any help :-)).

Thanks for the comments,
-- 
Brice Figureau
Days of Wonder
http://www.daysofwonder.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to