Menu

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

Download this file

27 lines (20 with data), 550 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
#ifndef CHILON_PARSER_ANY_CHAR_HPP
#define CHILON_PARSER_ANY_CHAR_HPP
#include <chilon/parser/char.hpp>
namespace chilon { namespace parser {
/**
* @brief Parse any character (except end of file)
*/
struct any_char : char_base<any_char> {
template <class Char>
inline static bool match_char(Char const ch) { return true; }
template <class Stream>
inline static bool skip(Stream& stream) {
stream.advance();
return true;
}
};
template <>
struct parse<any_char> : detail::parse_char<any_char> {};
} }
#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.