Menu

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

Download this file

28 lines (21 with data), 533 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_NOT_HPP
#define CHILON_PARSER_NOT_HPP
#include <chilon/parser/try.hpp>
namespace chilon { namespace parser {
template <class T>
struct not_ {
template <class Stream>
inline static bool skip(Stream& stream) {
return ! try_<T>::skip(stream);
}
};
template <class T>
struct parse<not_<T>> : unskippable<not_<T>> {
typedef void store_type;
template <class Stream, class O>
inline static bool skip(Stream& stream, O&) {
return not_<T>::skip(stream);
}
};
} }
#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.