Mercurial > hg > Members > masakoha > testcode
changeset 75:6541eae41a73
fix group function
author | masa |
---|---|
date | Fri, 28 Aug 2015 18:40:33 +0900 |
parents | b11dfc48f698 |
children | d98a036441e2 |
files | c/regexParser/main.cc |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/c/regexParser/main.cc Fri Aug 28 18:35:14 2015 +0900 +++ b/c/regexParser/main.cc Fri Aug 28 18:40:33 2015 +0900 @@ -86,13 +86,7 @@ // <group> ::= '('<regex>')' NodePtr group() { - NodePtr n = NULL; - if (*ptr == ')') { - n = createNode('(',n,0); - } else { - n = createNode('+', regex(),0); - } - return n; + return regex(); }