]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/loader.cpp
Provide access to the keyword of the current statement
[libs/datafile.git] / source / loader.cpp
index 81fd27eecebf87c16e3418ae6d11e3ead9ba8d80..997e7c9eec27f7f480c711291f6a47f997c7039e 100644 (file)
@@ -205,5 +205,12 @@ const string &Loader::get_source() const
        return cur_st->source;
 }
 
+const string &Loader::get_keyword() const
+{
+       if(!cur_st)
+               throw logic_error("no current statement");
+       return cur_st->keyword;
+}
+
 } // namespace DataFile
 } // namespace Msp