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