X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramcompiler.h;h=d7b8a8701ff0f8687cf871e59f000ba18c134ed2;hp=fea7a73fb78c3e8a0b68d12c7a9aa25f73018840;hb=35646cafcdff8be76f6ef96018415d9ddec6f77c;hpb=4bee7581168e0803dd24568b61e590d2a4830f96 diff --git a/source/programcompiler.h b/source/programcompiler.h index fea7a73f..d7b8a870 100644 --- a/source/programcompiler.h +++ b/source/programcompiler.h @@ -370,11 +370,12 @@ private: }; Resources *resources; - ProgramParser parser; ProgramSyntax::Module *module; + std::set imported_names; public: ProgramCompiler(); + ~ProgramCompiler(); void compile(const std::string &, const std::string & = ""); void compile(IO::Base &, Resources * = 0, const std::string & = ""); @@ -385,6 +386,8 @@ private: static ProgramSyntax::Module *create_builtins_module(); static ProgramSyntax::Module &get_builtins_module(); static ProgramSyntax::Stage *get_builtins(ProgramSyntax::StageType); + void append_module(ProgramSyntax::Module &); + void append_stage(ProgramSyntax::Stage &); void process(); void import(const std::string &); void generate(ProgramSyntax::Stage &);