Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
StringFromStringParserCommon.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <alib/vector>
9
10#include <core/stringApi.hpp>
11
13
14#include <alphabet/EndSymbol.h>
15
16namespace string {
17
19public:
20 template < class SymbolType >
22};
23
24template < class SymbolType >
27 string::StringFromStringLexer::Token token = string::StringFromStringLexer::next ( input );
30 data.push_back ( alphabet::EndSymbol::instance < SymbolType > ( ) );
31 } else {
33 data.push_back ( core::stringApi < SymbolType >::parse ( input ) );
34 }
35
37 }
39 return data;
40}
41
42} /* namespace string */
43
static void putback(ext::istream &input, const Token &token)
Definition: lexer.hpp:61
Definition: istream.h:32
Class extending the vector class from the standard library. Original reason is to allow printing of t...
Definition: vector.hpp:45
static Token next(ext::istream &input)
Definition: StringFromStringLexer.cpp:10
Definition: StringFromStringParserCommon.h:18
static ext::vector< SymbolType > parseContent(ext::istream &input)
Definition: StringFromStringParserCommon.h:25
Definition: RandomStringFactory.cpp:12
Definition: stringApi.hpp:26