From 1c630655b2beb0f4b84fb7e1bc034ba62520be37 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Mon, 21 Sep 2026 04:50:06 +0000 Subject: fix name typo, and remove outdated parse --- include/lang_analysis/ast.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/lang_analysis/ast.h (limited to 'include/lang_analysis/ast.h') 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 + +#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; +}; + +} -- cgit v1.3.1-4-g156e