Menu

[94f52a]: / parser / lexeme.hpp  Maximize  Restore  History

Download this file

28 lines (22 with data), 664 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef CHILON_PARSER_LEXEME_HPP
#define CHILON_PARSER_LEXEME_HPP
#include <chilon/parser/parse.hpp>
#include <chilon/parser/detail/lexeme.hpp>
#include <chilon/meta/type.hpp>
namespace chilon { namespace parser {
template <class... T>
struct lexeme : parse_base<typename detail::make_lexeme<T...>::type> {
template <class Stream>
inline static bool skip(Stream& stream) {
return parse<lexeme>::skip(stream);
}
};
////////////////////////////////////////////////////////////////////////////////
/**
* Parse the Lexeme
*/
template <class... T>
struct parse< detail::lexeme<T...> > :
detail::parse_sequence<false, T...> {};
} }
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.