-
Notifications
You must be signed in to change notification settings - Fork 2
/
sql.hpp
33 lines (21 loc) · 908 Bytes
/
sql.hpp
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
27
28
29
30
31
32
33
#ifndef SQL_TEXT_GRAMMAR_SQL_HPP
#define SQL_TEXT_GRAMMAR_SQL_HPP
#include "sql/fusion/sql_stmt.hpp"
#include <boost/spirit/home/x3.hpp>
namespace sql { namespace text {
using boost::spirit::x3::rule;
///////////////////////////////////////////////////////////////////////////
// Rule IDs
///////////////////////////////////////////////////////////////////////////
struct sql_class;
///////////////////////////////////////////////////////////////////////////
// Rules
///////////////////////////////////////////////////////////////////////////
const rule<sql_class, ast::sql_stmt_list>
sql = "sql";
///////////////////////////////////////////////////////////////////////////
// Declaration
///////////////////////////////////////////////////////////////////////////
BOOST_SPIRIT_DECLARE(decltype(sql));
}}
#endif //SQL_TEXT_GRAMMAR_SQL_HPP