diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-10-16 19:34:47 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-10-16 19:34:47 +0300 |
commit | 7b09f265c1deb12c9e6778c4d92473d66fc5406b (patch) | |
tree | d8103c5ed176899524913697aa0356d93a107d38 /example | |
parent | 77f503bd6db90bd882e389ea977f02a2773e14f2 (diff) | |
download | texo-7b09f265c1deb12c9e6778c4d92473d66fc5406b.tar texo-7b09f265c1deb12c9e6778c4d92473d66fc5406b.tar.xz texo-7b09f265c1deb12c9e6778c4d92473d66fc5406b.zip |
[texo] Starting rewriting...
Diffstat (limited to 'example')
-rw-r--r-- | example/filter_html.cpp | 17 | ||||
-rw-r--r-- | example/makefile | 24 | ||||
-rw-r--r-- | example/plain_to_html.cpp | 21 |
3 files changed, 0 insertions, 62 deletions
diff --git a/example/filter_html.cpp b/example/filter_html.cpp deleted file mode 100644 index a1957c3..0000000 --- a/example/filter_html.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include <stdio.h> -#include <html.hpp> -#include <file.hpp> - -int main() -{ - TexoFileExporter exporter(stdout); - TexoHTMLProducer producer(exporter); - TexoHTMLImporter importer(producer); - importer.PutStr( - "<script>EVIL MAGIC</script></p>\n" - "<a href='#'>Some</a> br:<br/>\n" - "<p class='evil_too'>And paragraphs work well too...</p>\n" - "<b>You</b> <i>can</i> <del>use</del> <ins>some</ins> <p>witchcraft.\n" - ); - return 0; -} diff --git a/example/makefile b/example/makefile deleted file mode 100644 index 39d4db7..0000000 --- a/example/makefile +++ /dev/null @@ -1,24 +0,0 @@ -# Uncomment following to enable debug mode: -# DEBUG = yes - -CC = g++ -EXAMPLES = plain_to_html filter_html - -CFLAGS = -Wall -ifeq '$(DEBUG)' 'yes' -CFLAGS += -g -O0 -else -CFLAGS += -O3 -endif - -INCLUDE = -I ../src -LFLAGS = -L.. -ltexo - - -default: $(EXAMPLES) - -%: %.cpp - $(CC) $(CFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@ - -clean: - rm -f $(EXAMPLES) diff --git a/example/plain_to_html.cpp b/example/plain_to_html.cpp deleted file mode 100644 index 9a81652..0000000 --- a/example/plain_to_html.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include <stdio.h> -#include <html.hpp> -#include <plain.hpp> -#include <file.hpp> - - -int main() -{ - TexoFileExporter exporter(stdout); - TexoHTMLProducer producer(exporter); - TexoPlainImporter importer(producer); - importer.PutStr( - "I am a little cute line. \n" - "I am another and that's fine. \n" - "But I am as long as a pine,\n" - "so lets drink a glass of wine.\n\n" - "Second paragraph was started here. \n" - "Take your bananas and go home, seer.\n" - ); - return 0; -} |