Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
alib2str
src
automaton
AutomatonFromStringLexer.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
automaton
{
15
16
class
AutomatonFromStringLexer
:
public
ext::Lexer
< AutomatonFromStringLexer > {
17
public
:
18
enum class
TokenType
{
19
EPSILON_NFA
,
20
MULTI_INITIAL_STATE_NFA
,
21
MULTI_INITIAL_STATE_EPSILON_NFA
,
22
NFA
,
23
DFA
,
24
NFTA
,
25
DFTA
,
26
OUT
,
27
IN
,
28
EPSILON
,
29
SEPARATOR
,
30
LEFT_BRACKET
,
31
RIGHT_BRACKET
,
32
NONE
,
33
COMMA
,
34
NEW_LINE
,
35
RANK
,
36
TEOF
,
37
ERROR
38
};
39
40
static
Token
next
(
ext::istream
& input);
41
};
42
43
}
/* namepsace automaton */
44
automaton::AutomatonFromStringLexer
Definition:
AutomatonFromStringLexer.h:16
automaton::AutomatonFromStringLexer::next
static Token next(ext::istream &input)
Definition:
AutomatonFromStringLexer.cpp:12
automaton::AutomatonFromStringLexer::TokenType
TokenType
Definition:
AutomatonFromStringLexer.h:18
automaton::AutomatonFromStringLexer::TokenType::EPSILON_NFA
@ EPSILON_NFA
automaton::AutomatonFromStringLexer::TokenType::LEFT_BRACKET
@ LEFT_BRACKET
automaton::AutomatonFromStringLexer::TokenType::NFA
@ NFA
automaton::AutomatonFromStringLexer::TokenType::NEW_LINE
@ NEW_LINE
automaton::AutomatonFromStringLexer::TokenType::RANK
@ RANK
automaton::AutomatonFromStringLexer::TokenType::EPSILON
@ EPSILON
automaton::AutomatonFromStringLexer::TokenType::COMMA
@ COMMA
automaton::AutomatonFromStringLexer::TokenType::DFA
@ DFA
automaton::AutomatonFromStringLexer::TokenType::MULTI_INITIAL_STATE_NFA
@ MULTI_INITIAL_STATE_NFA
automaton::AutomatonFromStringLexer::TokenType::SEPARATOR
@ SEPARATOR
automaton::AutomatonFromStringLexer::TokenType::DFTA
@ DFTA
automaton::AutomatonFromStringLexer::TokenType::RIGHT_BRACKET
@ RIGHT_BRACKET
automaton::AutomatonFromStringLexer::TokenType::TEOF
@ TEOF
automaton::AutomatonFromStringLexer::TokenType::NFTA
@ NFTA
automaton::AutomatonFromStringLexer::TokenType::NONE
@ NONE
automaton::AutomatonFromStringLexer::TokenType::ERROR
@ ERROR
automaton::AutomatonFromStringLexer::TokenType::IN
@ IN
automaton::AutomatonFromStringLexer::TokenType::MULTI_INITIAL_STATE_EPSILON_NFA
@ MULTI_INITIAL_STATE_EPSILON_NFA
automaton::AutomatonFromStringLexer::TokenType::OUT
@ OUT
ext::Lexer
Definition:
lexer.hpp:45
ext::istream
Definition:
istream.h:32
lexer.hpp
automaton
Definition:
ToGrammar.h:31
Generated on Mon Dec 27 2021 10:21:54 for Algorithms Library Toolkit by
1.9.2