X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramparser.h;h=dc94bd0044443bd01ca862584e6784a58da4fb9f;hp=72817e7ede06f8fe9607a2c17d8d99a503ea6c8e;hb=71972b08fd031e177a005eb1924a5c7a15459291;hpb=be55468e10915d377634aa850a95dcfb9093216d diff --git a/source/programparser.h b/source/programparser.h index 72817e7e..dc94bd00 100644 --- a/source/programparser.h +++ b/source/programparser.h @@ -38,6 +38,7 @@ private: std::string source; std::string source_name; + unsigned source_index; unsigned current_line; std::string::const_iterator iter; std::string::const_iterator source_end; @@ -55,8 +56,8 @@ public: ProgramParser(); ~ProgramParser(); - ProgramSyntax::Module &parse(const std::string &, const std::string &); - ProgramSyntax::Module &parse(IO::Base &, const std::string &); + ProgramSyntax::Module &parse(const std::string &, const std::string &, unsigned = 0); + ProgramSyntax::Module &parse(IO::Base &, const std::string &, unsigned = 0); private: void parse_source();