载入中...
搜索中...
未找到
DnutLexer.h 文件参考

Shared lexer for every `.dnut` dialect. 更多...

#include "common/Export.h"
#include "common/Result.h"
#include "dnut_interpreter/DnutDiagnostic.h"
#include <cstdint>
#include <string>
#include <string_view>
#include <vector>

浏览源代码.

类

struct  eve::dnut::DnutToken
 One lexed token with its exact source anchor. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::dnut
 

枚举

enum class  eve::dnut::DnutTokenKind : std::uint8_t {
  eve::dnut::Identifier , eve::dnut::String , eve::dnut::Number , eve::dnut::Punctuator ,
  eve::dnut::EndOfFile
}
 Token classes produced by the shared .dnut lexer. 更多...
 

函数

eve::Result< std::vector< DnutToken > > eve::dnut::lexDnut (std::string_view source, const std::string &path)
 Lex one .dnut source buffer into owned tokens.
 
const char * eve::dnut::dnutTokenKindName (DnutTokenKind kind) noexcept
 Return the stable lowercase spelling of a token kind.
 

详细描述

Shared lexer for every `.dnut` dialect.

在文件 DnutLexer.h 中定义.