vkdb
A time series database engine in C++.
Loading...
Searching...
No Matches
vkdb::Lexer Class Reference

Lexer for vq. More...

#include <lexer.h>

Public Types

using size_type = uint64_t
 

Public Member Functions

 Lexer ()=delete
 Deleted default constructor.
 
 Lexer (const std::string &input) noexcept
 Construct a new Lexer object.
 
 Lexer (Lexer &&) noexcept=default
 Move-construct a new Lexer object.
 
Lexeroperator= (Lexer &&) noexcept=default
 Move-assign a new Lexer object.
 
 Lexer (const Lexer &)=delete
 Deleted copy constructor.
 
Lexeroperator= (const Lexer &)=delete
 Deleted copy assignment operator.
 
 ~Lexer () noexcept=default
 Destroy the Lexer object.
 
std::vector< Tokentokenize ()
 Tokenize the input string.
 

Detailed Description

Lexer for vq.

Definition at line 45 of file lexer.h.

Member Typedef Documentation

◆ size_type

using vkdb::Lexer::size_type = uint64_t

Definition at line 47 of file lexer.h.

Constructor & Destructor Documentation

◆ Lexer()

vkdb::Lexer::Lexer ( const std::string & input)
explicitnoexcept

Construct a new Lexer object.

Parameters
inputThe input string to tokenize.

Definition at line 4 of file lexer.cpp.

Member Function Documentation

◆ tokenize()

std::vector< Token > vkdb::Lexer::tokenize ( )

Tokenize the input string.

Returns
std::vector<Token> The vector of tokens.
Exceptions
std::exceptionIf tokenization fails.

Definition at line 7 of file lexer.cpp.


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