Goose  Diff

Differences From Artifact [86db67a480]:

  • File bs/llr/element.h — part of check-in [affb657e05] at 2019-01-17 20:59:41 on branch trunk — Import most of the llr implementation from the previous prototype. (user: achavasse size: 606)

To Artifact [1e55efd52b]:

  • File bs/llr/element.h — part of check-in [73972ef6be] at 2019-01-18 16:19:38 on branch trunk — Parser: implemented the Pratt parser skeleton. (user: achavasse size: 612)

1
2
3
4
5
6
7
8
9
10
11
12

13
14
15
16



17
18
19
20
21
22
23
1
2
3
4
5
6
7
8
9
10
11
12
13
14



15
16
17
18
19
20
21
22
23
24












+

-
-
-
+
+
+







#ifndef EMPATHY_LLR_ELEMENT_H
#define EMPATHY_LLR_ELEMENT_H

namespace empathy::llr
{
    class Seq;

    class Element
    {
        public:
            using Content = variant
            <
                monostate,
                ptr< Seq >,
                ptr< Call >,
                ptr< GetVar >,
                ptr< SetVar >
                Call,
                GetVar,
                SetVar
            >;

            const auto& content() const { return m_content; }

        private:
            Content m_content;
    };