summaryrefslogtreecommitdiffstats
path: root/src/item.hpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-04-09 04:46:39 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-04-09 04:46:39 +0200
commit7a65ee0c61b04b09f10655f03be2fc082c8d5b2b (patch)
treebb8448b9dee4220fd4e864a789ee4748d191593f /src/item.hpp
parentffe1e7bb96ffdedb8b3a3154b4fde65050c12bef (diff)
downloadsolar-7a65ee0c61b04b09f10655f03be2fc082c8d5b2b.tar
solar-7a65ee0c61b04b09f10655f03be2fc082c8d5b2b.zip
Introduce rule_t and grammar_t
Diffstat (limited to 'src/item.hpp')
-rw-r--r--src/item.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/item.hpp b/src/item.hpp
index ae282a9..59d694e 100644
--- a/src/item.hpp
+++ b/src/item.hpp
@@ -34,8 +34,8 @@
namespace solar {
struct item_t : public std::tuple<std::string, std::vector<symbol_t>, unsigned> {
- item_t(const std::string &lhs)
- : std::tuple<std::string, std::vector<symbol_t>, unsigned>(lhs, std::vector<symbol_t>(), 0) {}
+ item_t(const std::string &lhs, const std::vector<symbol_t> &rhs = std::vector<symbol_t>())
+ : std::tuple<std::string, std::vector<symbol_t>, unsigned>(lhs, rhs, 0) {}
const std::string & get_lhs() const {
return std::get<0>(*this);