nixd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
nixf::Token Class Reference

A token. With it's kind, and the range in source code. More...

#include <Token.h>

Public Member Functions

 Token (tok::TokenKind Kind, LexerCursorRange Range, std::string_view View)
 
LexerCursor lCur () const
 
LexerCursor rCur () const
 
tok::TokenKind kind () const
 
LexerCursorRange range () const
 
std::string_view view () const
 

Detailed Description

A token. With it's kind, and the range in source code.

This class is trivially copyable.

Definition at line 55 of file Token.h.

Constructor & Destructor Documentation

◆ Token()

nixf::Token::Token ( tok::TokenKind Kind,
LexerCursorRange Range,
std::string_view View )
inline

Definition at line 61 of file Token.h.

Member Function Documentation

◆ kind()

tok::TokenKind nixf::Token::kind ( ) const
inline

◆ lCur()

LexerCursor nixf::Token::lCur ( ) const
inline

◆ range()

LexerCursorRange nixf::Token::range ( ) const
inline

◆ rCur()

LexerCursor nixf::Token::rCur ( ) const
inline

◆ view()

std::string_view nixf::Token::view ( ) const
inline

The documentation for this class was generated from the following file: