# HG changeset patch # User Masataka Kohagura # Date 1447139886 -32400 # Node ID 0b6940588e88a27185c5c61a648d5a87f551f6d4 # Parent b807383bcc43ca6adc475a64eaf898ef5aaab705 add node->parent diff -r b807383bcc43 -r 0b6940588e88 c/regexParser/createRegexParser.cc --- a/c/regexParser/createRegexParser.cc Tue Nov 10 15:36:33 2015 +0900 +++ b/c/regexParser/createRegexParser.cc Tue Nov 10 16:18:06 2015 +0900 @@ -23,6 +23,11 @@ n->left = left; n->right = right; + if (ri->tokenType != 'a') { + n->right = right; + n->left->parent = n->right->parent = n->self; + } + if (ri->tokenType == 'a') { n->nodeNumber = ri->nodeNumber; ri->nodeNumber++;