summaryrefslogtreecommitdiff
path: root/src/texo.hpp
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-10-18 17:33:06 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-10-18 17:33:06 +0300
commit2c12c0652d2b8c8440e1e908f004826840ed14ab (patch)
tree881dd649f2b15ba5a8cd3aa285d073eee7c73386 /src/texo.hpp
parent9a23fd146be4ba64b0cb720993bdc73a514fecf2 (diff)
downloadtexo-2c12c0652d2b8c8440e1e908f004826840ed14ab.tar
texo-2c12c0652d2b8c8440e1e908f004826840ed14ab.tar.xz
texo-2c12c0652d2b8c8440e1e908f004826840ed14ab.zip
[texo] Semi-working.
Diffstat (limited to 'src/texo.hpp')
-rw-r--r--src/texo.hpp82
1 files changed, 82 insertions, 0 deletions
diff --git a/src/texo.hpp b/src/texo.hpp
index 93cad3a..e2a7d86 100644
--- a/src/texo.hpp
+++ b/src/texo.hpp
@@ -1,5 +1,87 @@
#ifndef TEXO_INCLUDED_TEXO
#define TEXO_INCLUDED_TEXO
+#include <scrvar.hpp>
+
+
+struct Texo {
+ Texo(char c);
+ char c;
+};
+
+/*
+ * Texo Blocks
+ */
+struct TexoHeader {
+ TexoHeader(int level, bool closing = false);
+ int level; // Number >= 1, bigger for bigger.
+ bool closing;
+};
+
+struct TexoParagraph {
+ TexoParagraph(bool closing = false);
+ bool closing;
+};
+
+struct TexoCode {
+ TexoCode(bool closing = false);
+ bool closing;
+};
+
+struct TexoQuote {
+ TexoQuote(bool closing = false);
+ bool closing;
+};
+
+/*
+ * Texo Decorators
+ */
+struct TexoMono {
+ TexoMono(bool closing = false);
+ bool closing;
+};
+
+struct TexoBold {
+ TexoBold(bool closing = false);
+ bool closing;
+};
+
+struct TexoItalic {
+ TexoItalic(bool closing = false);
+ bool closing;
+};
+
+struct TexoUnderline {
+ TexoUnderline(bool closing = false);
+ bool closing;
+};
+
+struct TexoStrike {
+ TexoStrike(bool closing = false);
+ bool closing;
+};
+
+/*
+ * Texo Signals
+ */
+struct TexoImage {
+ ScriptVariable path;
+ ScriptVariable title;
+ ScriptVariable alt;
+ ScriptVariable link;
+};
+
+struct TexoLink {
+ ScriptVariable text;
+ ScriptVariable link;
+ ScriptVariable title;
+};
+
+struct TexoLineBreak {
+};
+
+struct TexoHorizontalRule {
+};
+
#endif