X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstatement.h;h=184ef9955cbc78af80231eabda307bb45605be54;hb=b39ce68f12c30eedb272b65fe78baec5864d89ca;hp=f9287a51714f56e89719db5c2a3b6871f0889b81;hpb=5c98c1f499413c41fd46ddf71a46b481338d7d6b;p=libs%2Fdatafile.git diff --git a/source/statement.h b/source/statement.h index f9287a5..184ef99 100644 --- a/source/statement.h +++ b/source/statement.h @@ -15,6 +15,7 @@ public: std::string keyword; Arguments args; bool valid; + bool control; std::string source; unsigned line; std::list sub; @@ -36,6 +37,28 @@ public: { return append(v); } }; +struct StatementKey +{ + std::string keyword; + std::string signature; + + StatementKey() { } + StatementKey(const std::string &k, const std::string &s): keyword(k), signature(s) { } + + bool operator<(const StatementKey &o) const + { return keyword arg_offsets; + + StatementInfo(); + StatementInfo(const std::string &, const std::string &); +}; + } // namespace DataFile } // namespace Msp