X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramcompiler.h;h=bea3faec1d0fee7552cb4cbd5fb36717dca8fb34;hp=9c20e090980fd3d403c4574345692314a1eeff71;hb=b699b811b22450828268be7ed67e35900be7bdad;hpb=be55468e10915d377634aa850a95dcfb9093216d diff --git a/source/programcompiler.h b/source/programcompiler.h index 9c20e090..bea3faec 100644 --- a/source/programcompiler.h +++ b/source/programcompiler.h @@ -44,6 +44,8 @@ private: typedef std::string ResultType; std::string formatted; + unsigned source_index; + unsigned source_line; unsigned indent; bool parameter_list; std::string block_interface; @@ -55,6 +57,7 @@ private: using Visitor::visit; void append(const std::string &); void append(char); + void set_source(unsigned, unsigned); virtual void visit(ProgramSyntax::Block &); virtual void visit(ProgramSyntax::Literal &); virtual void visit(ProgramSyntax::ParenthesizedExpression &); @@ -378,7 +381,7 @@ private: Resources *resources; ProgramSyntax::Module *module; - std::set imported_names; + std::vector imported_names; public: ProgramCompiler();