Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
alib2str
src
rte
RTEFromStringLexer.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <ext/istream>
9
10
#include <alib/string>
11
12
#include <
common/lexer.hpp
>
13
14
namespace
rte
{
15
16
class
RTEFromStringLexer
:
public
ext::Lexer
< RTEFromStringLexer > {
17
public
:
18
enum class
TokenType
{
19
LPAR
,
20
RPAR
,
21
PLUS
,
22
STAR
,
23
DOT
,
24
COMMA
,
25
EMPTY
,
26
RANK
,
27
TEOF
,
28
ERROR
29
};
30
31
static
Token
next
(
ext::istream
& input);
32
};
33
34
}
/* namespace rte */
35
ext::Lexer
Definition:
lexer.hpp:45
ext::istream
Definition:
istream.h:32
rte::RTEFromStringLexer
Definition:
RTEFromStringLexer.h:16
rte::RTEFromStringLexer::next
static Token next(ext::istream &input)
Definition:
RTEFromStringLexer.cpp:10
rte::RTEFromStringLexer::TokenType
TokenType
Definition:
RTEFromStringLexer.h:18
rte::RTEFromStringLexer::TokenType::DOT
@ DOT
rte::RTEFromStringLexer::TokenType::RANK
@ RANK
rte::RTEFromStringLexer::TokenType::COMMA
@ COMMA
rte::RTEFromStringLexer::TokenType::PLUS
@ PLUS
rte::RTEFromStringLexer::TokenType::STAR
@ STAR
rte::RTEFromStringLexer::TokenType::TEOF
@ TEOF
rte::RTEFromStringLexer::TokenType::EMPTY
@ EMPTY
rte::RTEFromStringLexer::TokenType::ERROR
@ ERROR
rte::RTEFromStringLexer::TokenType::LPAR
@ LPAR
rte::RTEFromStringLexer::TokenType::RPAR
@ RPAR
lexer.hpp
rte
Definition:
ToFTAGlushkov.h:22
Generated on Mon Dec 27 2021 10:21:55 for Algorithms Library Toolkit by
1.9.2