X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramcompiler.h;h=697c608617bc2a85c91524b04d91eff0978d74f2;hp=8c4f54537c7bc0da9f70ce9a744acf154157bb5d;hb=71972b08fd031e177a005eb1924a5c7a15459291;hpb=8468279a03d906f79fb6158162c7970d4d7fff60 diff --git a/source/programcompiler.h b/source/programcompiler.h index 8c4f5453..697c6086 100644 --- a/source/programcompiler.h +++ b/source/programcompiler.h @@ -44,9 +44,10 @@ private: typedef std::string ResultType; std::string formatted; + unsigned source_index; + unsigned source_line; unsigned indent; bool parameter_list; - unsigned else_if; std::string block_interface; Formatter(); @@ -54,6 +55,9 @@ private: virtual void apply(ProgramSyntax::Stage &); const std::string &get_result() const { return formatted; } 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 &);