comparison regexParser/regexParser.cc @ 175:3be0fbcd4b52 pairPro

implement createTransitionGenerator
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Dec 2015 20:27:26 +0900
parents b9e913030a47
children 5e8c6857934c
comparison
equal deleted inserted replaced
174:b9e913030a47 175:3be0fbcd4b52
35 n->right = right; 35 n->right = right;
36 if (n->tokenType == 'a' || n->tokenType == 'c') { 36 if (n->tokenType == 'a' || n->tokenType == 'c') {
37 n->nodeNumber = ri->nodeNumber; 37 n->nodeNumber = ri->nodeNumber;
38 ri->nodeNumber++; 38 ri->nodeNumber++;
39 } else { 39 } else {
40 n->nodeNumber = 0; 40 n->nodeNumber = SYNTAX_NODENUMBER;
41 } 41 }
42 42
43 return n; 43 return n;
44 } 44 }
45 45