diff options
| author | 2017-11-28 10:35:26 +0100 | |
|---|---|---|
| committer | 2017-11-28 10:35:26 +0100 | |
| commit | 4516fab0081b0db73b7401816a521453ab77ecc6 (patch) | |
| tree | 0cbdf6fc0c0b603a3a9dc9523f5e29302dd5467a /cli | |
| parent | 95d4b12f2900f13e5836cb460261c96889bdd4e5 (diff) | |
| download | OneRoll-4516fab0081b0db73b7401816a521453ab77ecc6.tar.gz OneRoll-4516fab0081b0db73b7401816a521453ab77ecc6.zip | |
add stuff to debug if operator in if operator
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/main.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cli/main.cpp b/cli/main.cpp index be02507..0672076 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -228,8 +228,8 @@ void startDiceParsingMarkdown(QString cmd) DiceParser parser; //setAlias - parser.insertAlias(new DiceAlias("l5r5R","L[-,⨀,⨀⬢,❂⬢,❁,❁⬢]"),0); - parser.insertAlias(new DiceAlias("l5r5S","L[-,-,⨀,⨀,⨀❁,⨀⬢,⨀⬢,❂,❂⬢,❁,❁,❁]"),1); + parser.insertAlias(new DiceAlias("L5R5R","L[-,⨀,⨀⬢,❂⬢,❁,❁⬢]"),0); + parser.insertAlias(new DiceAlias("L5R5S","L[-,-,⨀,⨀,⨀❁,⨀⬢,⨀⬢,❂,❂⬢,❁,❁,❁]"),1); if(parser.parseLine(cmd)) @@ -352,7 +352,13 @@ void startDiceParsing(QStringList& cmds,QString& treeFile,bool highlight) if(parser->hasStringResult()) { - str = parser->getStringResult().join(",");; + bool ok; + QStringList allStringlist = parser->getAllStringResult(ok); + QString stringResult = allStringlist.join(" ; "); + stringResult.replace("%1",scalarText); + stringResult.replace("%2",diceText.trimmed()); + str = stringResult; +// str = parser->getStringResult().join(","); } if(!parser->getComment().isEmpty()) { |