载入中...
搜索中...
未找到
DnutBlockScanner.h
浏览该文件的文档.
1#pragma once
2
5#include "common/Export.h"
6#include "common/Result.h"
8
9#include <cstddef>
10#include <string>
11#include <vector>
12
13namespace eve::dnut {
14
21struct DnutBlock {
22 std::string kind;
23 std::string id;
24 std::size_t beginToken = 0;
25 std::size_t endToken = 0;
26 int line = 1;
27 int column = 1;
28};
29
38 const std::vector<DnutToken>& tokens, const std::string& path);
39
40} // namespace eve::dnut
Shared lexer for every `.dnut` dialect.
#define EVENGINE_API_PLATFORM
Definition Export.h:107
std::unordered_map< const Graphics *, std::shared_ptr< Lifetime > > tokens
std::string path
Definition PlayHost.cpp:110
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
eve::Result< std::vector< DnutBlock > > scanDnutBlocks(const std::vector< DnutToken > &tokens, const std::string &path)
Discover balanced top-level dialect blocks in one lexed document.
One top-level dialect block in a shared token buffer.