16 TclParser(Tcl_Interp* interp, std::string_view input);
29 [[nodiscard]]
const std::string&
getColors()
const {
return colors; }
33 [[nodiscard]]
int getLast()
const {
return last.back(); }
37 [[nodiscard]]
static bool isProc(Tcl_Interp* interp, std::string_view str);
40 enum ParseType { COMMAND, EXPRESSION, OTHER };
42 void parse(
const char* p,
int size, ParseType type);
43 void printTokens(std::span<const Tcl_Token> tokens);
44 [[nodiscard]]
static ParseType guessSubType(std::span<const Tcl_Token> tokens,
size_t i);
45 void setColors(
const char* p,
int size,
char c);
51 std::vector<int> last;
58 #define DEBUG_PRINT(x)