#define __SFJP_ROAST__lexical__lexical_HPP__
#include "roast/lexical/rule.hpp"
+#include "roast/lexical/true_false_analyze.hpp"
#include "roast/lexical/seq.hpp"
#include "roast/lexical/or.hpp"
{
namespace rule
{
- //////////////////////////////////////////////////////////////////////////////////
-
- class _true_analyze : public lengthable
- {
- public:
- static const int length = 0;
-
- template <typename _It, typename _Param>
- bool analyze(const _It&, const _Param&)
- {
- return true;
- }
- template <typename _It, typename _Param>
- bool generate(const _It&, const _Param&)
- {
- return true;
- }
- };
-
- class _false_analyze : public lengthable
- {
- public:
- static const int length = 0;
-
- template <typename _It, typename _Param>
- bool analyze(const _It&, const _Param&)
- {
- return false;
- }
- template <typename _It, typename _Param>
- bool generate(const _It&, const _Param&)
- {
- return false;
- }
- };
-
template <typename T>
class test : public lengthable
{
--- /dev/null
+// Roast+ License
+/*
+*/
+#ifndef __SFJP_ROAST__lexical__true_false_analyze_HPP__
+#define __SFJP_ROAST__lexical__true_false_analyze_HPP__
+
+namespace roast
+{
+ namespace lexical
+ {
+ namespace rule
+ {
+ //////////////////////////////////////////////////////////////////////////////////
+
+ class _true_analyze : public lengthable
+ {
+ public:
+ static const int length = 0;
+
+ template <typename _It, typename _Param>
+ bool analyze(const _It&, const _Param&)
+ {
+ return true;
+ }
+ template <typename _It, typename _Param>
+ bool generate(const _It&, const _Param&)
+ {
+ return true;
+ }
+ };
+
+ class _false_analyze : public lengthable
+ {
+ public:
+ static const int length = 0;
+
+ template <typename _It, typename _Param>
+ bool analyze(const _It&, const _Param&)
+ {
+ return false;
+ }
+ template <typename _It, typename _Param>
+ bool generate(const _It&, const _Param&)
+ {
+ return false;
+ }
+ };
+
+ //////////////////////////////////////////////////////////////////////////////////
+ }
+ }
+}
+
+#endif//__SFJP_ROAST__lexical__true_false_analyze_HPP__