summaryrefslogtreecommitdiff
path: root/src/texo.hpp
blob: e2a7d869d3483497dc6eec37e5a9fa7a534adbdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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