working
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user