Mercurial > hg > Members > masakoha > testcode
changeset 65:20b7d4e958bb
fix
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 30 Jul 2015 23:55:53 +0900 |
parents | e0ad6c145f89 |
children | f8fb3b463f70 |
files | c/regexParser/main.cc |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/c/regexParser/main.cc Thu Jul 30 17:30:57 2015 +0900 +++ b/c/regexParser/main.cc Thu Jul 30 23:55:53 2015 +0900 @@ -87,8 +87,7 @@ // <literal> ::= [a-z][A-Z][0-9] NodePtr literal() { - char c = *ptr; - NodePtr n = createNode(c,0,0); + NodePtr n = createNode(*ptr,0,0); ptr++; return n; } @@ -146,7 +145,7 @@ tokenType = 'a'; tokenValue = *ptr; - ptr++; + return; if (*ptr == '\\') ptr++; // need more proccesing /*