From 40222a6d11e51fc7c8c41246de9944e2eaacaf64 Mon Sep 17 00:00:00 2001 From: myun2 Date: Tue, 12 Jun 2012 00:30:23 +0900 Subject: [PATCH] lexical2/characters.hpp Add. --- roast/include/roast/lexical2/characters.hpp | 68 +++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 roast/include/roast/lexical2/characters.hpp diff --git a/roast/include/roast/lexical2/characters.hpp b/roast/include/roast/lexical2/characters.hpp new file mode 100644 index 00000000..332816a3 --- /dev/null +++ b/roast/include/roast/lexical2/characters.hpp @@ -0,0 +1,68 @@ +// Roast+ License +/* +*/ +#ifndef __SFJP_ROAST__lexical2__characters_HPP__ +#define __SFJP_ROAST__lexical2__characters_HPP__ + +#include "roast/lexical2/fixed_numeric.hpp" + +namespace roast +{ + namespace lexical + { + namespace rule + { + namespace chars + { + /////////////////////////////////////////////////////////////////// + + typedef unichar<'\0'> nullchar, null, bszero, yenzero; + typedef unichar<'/'> slash; + typedef unichar<'='> equal; + typedef unichar<'*'> aster, asterisk; + typedef unichar<'+'> plus; + typedef unichar<'-'> hyphen, minus; + + typedef unichar<'\"'> dblqut, dblquote, double_quote; + typedef unichar<'\''> sglqut, singlequote, single_quote; + typedef unichar<'`'> bckqut, backquote, back_quote; + + typedef unichar<'.'> dot, period; + typedef unichar<','> comma; + typedef unichar<':'> colon; + typedef unichar<';'> semicolon; + typedef unichar<'%'> percent; + typedef unichar<'&'> ampersand, amp; + typedef unichar<'$'> dollar; + typedef unichar<'#'> sharp, hash; + typedef unichar<'@'> at, atmark; + typedef unichar<'!'> exclamation, excl; + typedef unichar<'?'> question; + typedef unichar<'_'> underbar, underscore; + typedef unichar<'^'> hat, circumflex; + typedef unichar<'~'> tilde; + typedef unichar<'|'> pipe, verticalbar; + typedef unichar<'|'> pipe, verticalbar; + + typedef unichar<'<'> lesser, lt, langle, lchev; + typedef unichar<'>'> greater, gt, rangle, rchev; + typedef unichar<'('> lparentheses, lpare; + typedef unichar<')'> rparentheses, rpare; + typedef unichar<'['> lsquarebrackets, lsqbrk; + typedef unichar<']'> rsquarebrackets, rsqbrk; + typedef unichar<'{'> lcurlybrackets, lcubrk; + typedef unichar<'}'> rcurlybrackets, rcubrk; + + typedef unichar<' '> space; + typedef unichar<'\t'> tab; + typedef unichar<'\r'> cr; + typedef unichar<'\n'> lf; + } + + /////////////////////////////////////////////////////////////////// + } + using namespace rule::chars; + } +} + +#endif//__SFJP_ROAST__lexical2__characters_HPP__ -- 2.11.0