Loading...
Searching...
No Matches
visitInfo.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
core/common.hpp
"
5
6
namespace
by {
11
class
_nout
visitInfo
{
12
BY(ME(
visitInfo
))
13
14
public
:
15
visitInfo
(
const
std::string* name,
node
* parent,
nidx
index,
ncnt
len,
ncnt
additionalLen,
nint
depth):
16
me(name ? *name : std::string(
""
), parent, index, len, additionalLen, depth) {}
17
18
visitInfo
(
const
std::string&
newName
,
node
*
newParent
,
nidx
newIndex
,
ncnt
newLen
,
ncnt
newAdditionalLen
,
19
nint
newDepth
):
20
name(
newName
),
21
parent(
newParent
),
22
index(
newIndex
),
23
len(
newLen
),
24
additionalLen(
newAdditionalLen
),
25
depth(
newDepth
) {}
26
27
public
:
28
std::string name;
29
node
* parent;
30
nidx
index;
31
ncnt
len;
32
ncnt
additionalLen;
33
nint
depth;
34
};
35
}
by::node
Base class for all AST nodes in the byeol language.
Definition
node.hpp:195
by::tnarr
Definition
tnarr.hpp:9
by::visitInfo
Visitor context information.
Definition
visitInfo.hpp:11
common.hpp
to Top