diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-22 15:58:08 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-24 17:02:47 +0300 |
commit | 823026b58211a4166de06ac243d978dcb9930271 (patch) | |
tree | 97b43039cb769f8bee410e8536f9f945f2825153 /odb/odb/sql-token.ixx | |
parent | b56b9c6796d8853758f0f5967488260d61b788e2 (diff) |
Turn odb repository into muti-package repository
Also remove the autoconf/make-based build system.
Diffstat (limited to 'odb/odb/sql-token.ixx')
-rw-r--r-- | odb/odb/sql-token.ixx | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/odb/odb/sql-token.ixx b/odb/odb/sql-token.ixx new file mode 100644 index 0000000..5118c9f --- /dev/null +++ b/odb/odb/sql-token.ixx @@ -0,0 +1,44 @@ +// file : odb/sql-token.ixx +// license : GNU GPL v3; see accompanying LICENSE file + +inline sql_token::token_type sql_token:: +type () const +{ + return type_; +} + +inline std::string const& sql_token:: +identifier () const +{ + return str_; +} + +inline sql_token::punctuation_type sql_token:: +punctuation () const +{ + return type_ == t_punctuation ? punctuation_ : p_invalid; +} + +inline std::string const& sql_token:: +literal () const +{ + return str_; +} + +inline sql_token:: +sql_token () + : type_ (t_eos) +{ +} + +inline sql_token:: +sql_token (punctuation_type p) + : type_ (t_punctuation), punctuation_ (p) +{ +} + +inline sql_token:: +sql_token (token_type t, std::string const& s) + : type_ (t), str_ (s) +{ +} |