Not quite suredolpheen wrote:pofs wrote:And how would your parser behave if I have device named "all lights"?
It will select device 'all lights' in your house (It's really 'all lights' that you want to operate on isn't it? )
According to the syntax you described, it should select all devices with tag "lights", but it will select only one device (which might even not have a tag). On the other hand, returning only devices with tag "lights" will violate your syntax rule #1 (select by name). And returning all devices (both by tag and by name) isn't probably what user meant, but also possible. That makes your syntax ambiguous.
That's why they use special symbols in CSS selectors