1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef EMPATHY_LLR_ELEMENT_H
#define EMPATHY_LLR_ELEMENT_H
namespace empathy::llr
{
class Element
{
public:
using Content = variant
<
Value
// TODO add the rest
>;
private:
Content m_content;
};
}
#endif
|
>
>
>
|
<
>
>
>
>
>
>
>
>
>
>
|
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
|
#ifndef EMPATHY_LLR_ELEMENT_H
#define EMPATHY_LLR_ELEMENT_H
namespace empathy::llr
{
class Seq;
class Element
{
public:
using Content = variant
<
ptr< Seq >,
ptr< Call >,
ptr< GetVar >,
ptr< SetVar >
>;
const auto& content() const { return m_content; }
private:
Content m_content;
};
template<>
bool CanBeInterpreted( const Element& elem );
template<>
bool CanBeInterpretedInIncompleteFunction( const Element& elem );
}
#endif
|