#ifndef SPA_QUERY_TYPES_H #define SPA_QUERY_TYPES_H #include #include enum ParameterType { ANY, // _ LINE, // line number NAME, // variable / procedure name in SIMPLE ENTITY, // stmt, prog_line variable names... BOOLEAN, ATTRIBUTE, // entity.attribute EXPRESSION, // "x + 1" SUBEXPRESSION // _"x + 1"_ }; struct query_declaration { std::string type; std::string name; }; struct query_parameter { std::string value; ParameterType type; }; struct query_relation { std::string type; std::vector parameters; }; struct query_tree { std::vector variables; std::vector targets; std::vector relations; }; #endif