载入中...
搜索中...
未找到
DnutLexer.h
浏览该文件的文档.
53[[nodiscard]] EVENGINE_API_PLATFORM eve::Result<std::vector<DnutToken>> lexDnut(std::string_view source,
Domain-neutral source diagnostics for `.dnut` documents.
Move-only, checked operation results for the common layer.
Definition ConversationDialect.cpp:13
eve::Result< std::vector< DnutToken > > lexDnut(std::string_view source, const std::string &path)
Lex one .dnut source buffer into owned tokens.
Definition DnutLexer.cpp:97
const char * dnutTokenKindName(DnutTokenKind kind) noexcept
Return the stable lowercase spelling of a token kind.
Definition DnutLexer.cpp:86
@ Identifier
Bare word: keyword, field name, identifier, or bare enum value.
@ Punctuator
One- or two-character punctuator such as {, =, ==, ->.
@ Number
Unsigned numeric literal; sign handling belongs to the parser.