OSDN Git Service
(root)
/
roast
/
roast.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4067f2f
)
lexical/rule/char.hpp: unichar の generate() 関数
author
Myun2
<myun2@nwhite.info>
Mon, 21 May 2012 18:00:33 +0000
(
03:00
+0900)
committer
Myun2
<myun2@nwhite.info>
Mon, 21 May 2012 18:00:33 +0000
(
03:00
+0900)
roast/include/roast/lexical/rule/char.hpp
patch
|
blob
|
history
diff --git
a/roast/include/roast/lexical/rule/char.hpp
b/roast/include/roast/lexical/rule/char.hpp
index
ed789ec
..
4fe0595
100644
(file)
--- a/
roast/include/roast/lexical/rule/char.hpp
+++ b/
roast/include/roast/lexical/rule/char.hpp
@@
-143,6
+143,17
@@
namespace roast
///////////////////////////////////////////////////////////////////
}
using namespace rule::chars;
+
+
+ // generate/analyze() Functions
+
+ // generate
+ template <typename _Strm, char _Char>
+ bool generate(_Strm& strm, const ::roast::lexical::rule::unichar<_Char>& uc)
+ {
+ strm << _Char;
+ return true;
+ }
}
}