]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/binaryparser.cpp
Add Readme.txt and some other documentation
[libs/datafile.git] / source / binaryparser.cpp
index 298770a50f3ccbf2b02d3113f0163daea0dfefa7..6aed5b1590bb93b383fb45c535a6cd75af94a030 100644 (file)
@@ -19,7 +19,7 @@ BinaryParser::BinaryParser(Input &i, const string &s):
        ParserMode(i, s),
        first(true)
 {
-       dict[1]=DictEntry("__kw", "iss");
+       dict[1]=DictEntry("__st", "iss");
        dict[2]=DictEntry("__enum", "is");
 }
 
@@ -28,7 +28,7 @@ Statement BinaryParser::parse()
        while(1)
        {
                Statement st=parse_statement();
-               if(st.keyword=="__kw")
+               if(st.keyword=="__st")
                {
                        if(st.args.size()!=3)
                                throw TypeError(src+": Keyword definition must have three arguments");