This commit is contained in:
2026-07-11 18:33:04 -06:00
parent 1fce18460e
commit c964f1e9eb
10 changed files with 46 additions and 113 deletions
+33
View File
@@ -0,0 +1,33 @@
#pragma once
#include <spider/compiler/common.hpp>
#include <variant>
namespace spider {
struct LitToken {
public:
const range at;
const std::u32string type;
const std::u32string value;
};
struct SimpleToken {
public:
const range at;
const std::u32string type;
};
struct CompToken;
using Token = std::variant<LitToken, SimpleToken, LitToken>;
struct CompToken {
public:
const range at;
const std::u32string type;
vector<Token> inners;
};
}