aboutsummaryrefslogtreecommitdiff
path: root/include/lexer/ast.h
blob: 871afafdb88a9d3840d05cd69d680dbdad8ca8a3 (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

#pragma once

#include <string>

#include "lexer/lexer_class.h"
#include "lexer/enum_type.h"
#include "lexer/token.h"

using namespace std; // remove this

namespace ov4
{

class T_lexer::T_ast
{
public:
    T_ast() = default;

    enum_token_type token_type;
    string command_text;
    size_t left = string::npos;
    size_t right = string::npos;

    // if this is marked as `subshell`
    // it will fork a subshell
    // then the subshell will handler the rest
    bool subshell;
};

}