From ed7a63015c1583d5544ac18bbaccaedc95f3e5e3 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 8 Nov 2019 19:49:40 +0300 Subject: [texo] Full rewrite of inner representation. --- src/lines.hpp | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'src/lines.hpp') diff --git a/src/lines.hpp b/src/lines.hpp index d6ce555..7049919 100644 --- a/src/lines.hpp +++ b/src/lines.hpp @@ -6,29 +6,40 @@ #include "importer.hpp" +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Texo Lines Producer + */ class TexoProducerLines: public TexoProducer { public: TexoProducerLines(TexoExporter &exporter); - void End(); - void Put(const Texo &piece); + bool End(); + + + bool Put(char c); + + + bool Paragraph(); + bool Quote(); - void Put(const TexoParagraph &piece); - void Put(const TexoQuote &piece); private: bool newline; }; +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Texo Lines Importer + */ class TexoImporterLines: public TexoImporter { public: TexoImporterLines(TexoProducer &producer); - void Put(char c); - void Put(const ScriptVariable &str); - void Put(FILE *file); + +protected: + bool TruePut(char c); + private: bool newline; -- cgit v1.2.3