+ fix expression grammar to work with mapnik::value_integer
This commit is contained in:
parent
511399f3c1
commit
cd435172d4
2 changed files with 10 additions and 10 deletions
|
@ -108,7 +108,7 @@ struct regex_replace_impl
|
||||||
mapnik::transcoder const& tr_;
|
mapnik::transcoder const& tr_;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct geometry_types : qi::symbols<char,int>
|
struct geometry_types : qi::symbols<char,mapnik::value_integer>
|
||||||
{
|
{
|
||||||
geometry_types()
|
geometry_types()
|
||||||
{
|
{
|
||||||
|
|
|
@ -140,12 +140,12 @@ expression_grammar<Iterator>::expression_grammar(mapnik::transcoder const& tr)
|
||||||
|
|
||||||
primary_expr = strict_double [_val = _1]
|
primary_expr = strict_double [_val = _1]
|
||||||
| long_long [_val = _1]
|
| long_long [_val = _1]
|
||||||
//| no_case[lit("true")] [_val = true]
|
| no_case[lit("true")] [_val = true]
|
||||||
//| no_case[lit("false")] [_val = false]
|
| no_case[lit("false")] [_val = false]
|
||||||
//| no_case[lit("null")] [_val = value_null() ]
|
| no_case[lit("null")] [_val = value_null() ]
|
||||||
//| no_case[geom_type][_val = _1 ]
|
| no_case[geom_type][_val = _1 ]
|
||||||
| ustring [_val = unicode_(_1) ]
|
| ustring [_val = unicode_(_1) ]
|
||||||
//| lit("[mapnik::geometry_type]")[_val = construct<mapnik::geometry_type_attribute>()]
|
| lit("[mapnik::geometry_type]")[_val = construct<mapnik::geometry_type_attribute>()]
|
||||||
| attr [_val = construct<mapnik::attribute>( _1 ) ]
|
| attr [_val = construct<mapnik::attribute>( _1 ) ]
|
||||||
| '(' >> expr [_val = _1 ] >> ')'
|
| '(' >> expr [_val = _1 ] >> ')'
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue