summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/parse.hpp
blob: ae0d62732bf0cb7f123433e9362178d42af4c835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <memory>
#include <mbgl/style/conversion.hpp>
#include <mbgl/style/expression/expression.hpp>
#include <mbgl/style/expression/parsing_context.hpp>


namespace mbgl {
namespace style {
namespace expression {

using namespace mbgl::style;

/*
    Parse the given style-spec JSON value into an Expression object.
    Specifically, this function is responsible for determining the expression
    type (either Literal, or the one named in value[0]) and dispatching to the
    appropriate ParseXxxx::parse(const V&, ParsingContext) method.
*/
ParseResult parseExpression(const mbgl::style::conversion::Value& value, ParsingContext context);


} // namespace expression
} // namespace style
} // namespace mbgl