diff options
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/diceparser.cpp b/diceparser.cpp index f2a7ea5..a2015d8 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -915,12 +915,20 @@ bool DiceParser::readOperand(QString& str,ExecutionNode* & node) } return false; } -void DiceParser::displayDotTree() +void DiceParser::writeDownDotTree(QString filepath) { QString str("digraph ExecutionTree {\n"); m_start->generateDotTree(str); str.append("}"); - qDebug()<< str; + + /*QFile file(filepath); + if(file.open(QIODevice::WriteOnly)) + { + QTextStream in(&file); + in << str; + }*/ + + //qDebug()<< str; } |