summaryrefslogtreecommitdiff
path: root/cli/semantics/expression.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-04-08 14:51:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-04-27 11:38:53 +0300
commit720c5a33b6a49cf328fdd7611f49153cf8f60247 (patch)
tree9725f3d1f42ec90fde84520f49647edea013ce5e /cli/semantics/expression.hxx
parent3183f3bb927a90783ae0aeaf190a0919377aabe4 (diff)
Separate tests and examples into individual packages
Also make cli module to be explicitly enabled via the config.cli configuration variable.
Diffstat (limited to 'cli/semantics/expression.hxx')
-rw-r--r--cli/semantics/expression.hxx76
1 files changed, 0 insertions, 76 deletions
diff --git a/cli/semantics/expression.hxx b/cli/semantics/expression.hxx
deleted file mode 100644
index e36a0cb..0000000
--- a/cli/semantics/expression.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-// file : cli/semantics/expression.hxx
-// author : Boris Kolpackov <boris@codesynthesis.com>
-// license : MIT; see accompanying LICENSE file
-
-#ifndef CLI_SEMANTICS_EXPRESSION_HXX
-#define CLI_SEMANTICS_EXPRESSION_HXX
-
-#include <string>
-#include <cli/semantics/elements.hxx>
-
-namespace semantics
-{
- //
- //
- class initialized;
-
- //
- //
- class expression: public node
- {
- public:
- enum expression_type
- {
- string_lit,
- char_lit,
- bool_lit,
- int_lit,
- float_lit,
- call_expr,
- identifier
- };
-
- expression_type
- type () const
- {
- return type_;
- }
-
- std::string const&
- value () const
- {
- return value_;
- }
-
- public:
- initialized&
- initializes () const
- {
- return *initializes_;
- }
-
- public:
- expression (path const& file,
- size_t line,
- size_t column,
- expression_type type,
- std::string const& value)
- : node (file, line, column), type_ (type), value_ (value)
- {
- }
-
- void
- add_edge_right (initialized& e)
- {
- initializes_ = &e;
- }
-
- private:
- initialized* initializes_;
-
- expression_type type_;
- std::string value_;
- };
-}
-
-#endif // CLI_SEMANTICS_EXPRESSION_HXX