On Sep 23, 2009, at 10:40 AM, Markus Roberts wrote: > > > Yes, that sound like a good plan, except I'm afraid we'll have > more and > more place where regex are valid/invalids (especially if expressions > are > generalized in other place of the language as Thomas suggested). > > > But (and this is why this is the solution that's generally used) > there shouldn't ever be a place where both DIV and REGEX are valid. > Following delimiter/operator like things you are in what's typically > called a "value context" and REGEX is valid, DIV isn't. Conversely, > following values (literals, identifiers, ")" and sometimes "]") you > are in an "operator context" where DIV is valid and REGEX isn't. > But the idea is that there aren't any places where both are valid. > > Are the braces mandatory in a case?
Yep. -- In theory, there is no difference between theory and practice; in practice, there is. -- Chuck Reid --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
