mapnik / mapnik

Mapnik is an open source toolkit for developing mapping applications
http://mapnik.org
GNU Lesser General Public License v2.1
3.68k stars 826 forks source link

Supporting `is not` syntax #796

Open artemp opened 13 years ago

artemp commented 13 years ago

Currently we support not [field] is {val} but we don't support [field] is not {val}. As we added support for is null (#794) this grows in utility.

hholzgra commented 3 years ago

Coming from a lex/yacc background, I gave adding "is null" a try, but apparently utterly fail to grok how Boost Spirit / X3 actually works.

I tried the following variants:

artemp commented 3 years ago

@hholzgra - Thanks for trying! I think you need to add lexeme directive to avoid skipping. Take a look

artemp commented 3 years ago

@hholzgra as a quick test you could try defining literal like

lit("isnot") 

Just to see everything else works as expected