diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-21 04:50:06 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-21 04:50:06 +0000 |
| commit | 1c630655b2beb0f4b84fb7e1bc034ba62520be37 (patch) | |
| tree | e90e70c425813df29c8bbd5c1e84ef22f4e4a176 /include/lang_analysis/ast.h | |
| parent | 9f5936bf64deb625a27259d778937e281ca19cea (diff) | |
fix name typo, and remove outdated parse
Diffstat (limited to 'include/lang_analysis/ast.h')
| -rw-r--r-- | include/lang_analysis/ast.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/lang_analysis/ast.h b/include/lang_analysis/ast.h new file mode 100644 index 0000000..9e5a717 --- /dev/null +++ b/include/lang_analysis/ast.h @@ -0,0 +1,30 @@ +#pragma once + +#include <string> + +#include "lang_analysis/lexer_class.h" +#include "lang_analysis/enum_type.h" +#include "lang_analysis/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; +}; + +} |
