Mercurial > hg > Applications > Grep
diff c/regexParser/createRegexTree.cc @ 85:5072a44ed842
add Word
author | masa |
---|---|
date | Thu, 08 Oct 2015 20:07:32 +0900 |
parents | 1d9bbf922bb6 |
children | aef2546cd130 |
line wrap: on
line diff
--- a/c/regexParser/createRegexTree.cc Wed Oct 07 18:21:32 2015 +0900 +++ b/c/regexParser/createRegexTree.cc Thu Oct 08 20:07:32 2015 +0900 @@ -38,8 +38,9 @@ // <literal> ::= [a-z][A-Z][0-9] NodePtr literal(RegexInfoPtr ri) { + unsigned char *top = ri->ptr; NodePtr n = createNode(ri->ptr[0],0,0); - ri->ptr++; + token(ri); return n; }