Mercurial > hg > Applications > Grep
comparison regexParser/main.cc @ 222:c38a7b2dd996
implement exportState function (not correct working)
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 14 Jan 2016 21:46:35 +0900 |
parents | a8e477f1352d |
children | 399380ad95b7 |
comparison
equal
deleted
inserted
replaced
221:78174ff2f338 | 222:c38a7b2dd996 |
---|---|
29 | 29 |
30 if (generate && !subset) { // NFA generation | 30 if (generate && !subset) { // NFA generation |
31 TGValue tgv = generateTransitionList(n); | 31 TGValue tgv = generateTransitionList(n); |
32 printTree(n); | 32 printTree(n); |
33 printState(tgv.tg); | 33 printState(tgv.tg); |
34 exportState(tgv.tg); | |
34 } else if (subset) { | 35 } else if (subset) { |
35 TGValue tgv = generateTransitionList(n); | 36 TGValue tgv = generateTransitionList(n); |
36 SCValue scv = createSCValue(tgv); | 37 SCValue scv = createSCValue(tgv); |
37 subsetConstruction(scv); // Determinization | 38 subsetConstruction(scv); // Determinization |
38 printState(tgv.tg); | 39 printState(tgv.tg); |
40 exportState(tgv.tg); | |
39 } | 41 } |
40 | |
41 return 0; | 42 return 0; |
42 } | 43 } |