EMath++
Classes for mathematical concepts
Loading...
Searching...
No Matches
efc::Lexer Class Reference

Class that works as a token supplier for the Parser class. More...

Public Member Functions

 Lexer (const std::string &input) noexcept
 Standalone constructor for the Lexer class.
 
const Token next () noexcept
 Function that returns the next Token in the input provided in the constructor.
 
 ~Lexer () noexcept=default
 Default destructor.
 

Detailed Description

Class that works as a token supplier for the Parser class.

The class consists of a public function for getting the next Token

Definition at line 689 of file interface.cpp.

Constructor & Destructor Documentation

◆ Lexer()

efc::Lexer::Lexer ( const std::string &  input)
inlinenoexcept

Standalone constructor for the Lexer class.

Parameters
inputA const reference to the std::string to tokenize.

Definition at line 728 of file interface.cpp.

Member Function Documentation

◆ next()

const Token efc::Lexer::next ( )
inlinenoexcept

Function that returns the next Token in the input provided in the constructor.

Returns
(Token) The next Token in the input

Definition at line 733 of file interface.cpp.


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