diff options
| -rw-r--r-- | HelpMe.md | 4 | ||||
| -rw-r--r-- | README.md | 29 | ||||
| -rw-r--r-- | diceparser.h | 15 |
3 files changed, 21 insertions, 27 deletions
@@ -250,8 +250,8 @@ https://gist.github.com/obiwankennedy/62101383d411e55d205e44df78aa5299 The amount of color is depending of client application of DiceParser. -With Rolisteam, you may set any Qt color's name or set the Hexcode of your color: #ff28AC. -The cli application supports few colors. +- With Rolisteam, you may set any Qt color's name or set the Hexcode of your color: #ff28AC. +- The cli application supports few colors: black, white, blue, red, black, green, yellow. ### Merge @@ -14,7 +14,7 @@ Instruction =: Expression Expression =: number | number Dice DiceOperation | ScalarOperator Expression | string | variable Expression Dice =: DiceOperator Number(faces) | DiceOperator ListOfValues DiceOperator =: D | L -DiceOperation =: Keep | KeepAndExplose | sort | if | explose | jumpbackward | merge | filter | parenthese | count | paint | group +DiceOperation =: Keep | KeepAndExplose | Sort | Count | Reroll | If | Explose | RerollAndAdd | Jumpbackward | Merge | Filter | Split | Parenthese | Count | Paint | Group ScalarOperator =: [x,-,*,x,/] number =: [0-9]+ | constantValue constantValue =: ${id | label} @@ -30,16 +30,23 @@ ListOfValue=: String[Range],ListOfValue | String[Range] String =: [A-z0-9]+ Keep =: k Number KeepAndExplose =: K number -sort =: s -if =: i compareMethod [Validator] {Expression}[{Expression}] -paint =: p [ count : color ] -group =: number -explose =: e Validator -jumpbackward =: @DiceOperation -merge =: m | m Expression -filter =: f Validator -parenthese =: (expression) -count =: c Validator +Reroll =: r +Explosing =: e +RerollOnceAndAdd =: a +RerollAndAdd =: A +Painter =: p +Split =: u +Group =: g +Sort =: s +If =: i compareMethod [Validator] {Expression}[{Expression}] +Paint =: p [ Count : color ] +Group =: number +Explose =: e Validator +Jumpbackward =: @DiceOperation +Merge =: m | m Expression +Filter =: f Validator +Parenthese =: (expression) +Count =: c Validator ``` diff --git a/diceparser.h b/diceparser.h index abe19a1..6c59bae 100644 --- a/diceparser.h +++ b/diceparser.h @@ -47,20 +47,7 @@ class ExploseDiceNode; * * @section grammar The Grammar * - * The grammar is something like this: - * - * Line =: Command | Command;Command<br/> - * Command =: Expression | ScalarOperator Expression | ScalarOperator NodeAction Expression<br/> - * Expression =: number | number Dice | Command<br/> - * Dice =: DiceOperator Number(faces) | DiceOperator List<br/> - * List =: [Word[range|percentage],Number[range|percentage],',']+<br/> - * Persentage =: Number <br/> - * NodeAction =: @<br/> - * DiceOperator =: [D,L]<br/> - * ScalarOperator =: [x,-,*,x,/]<br/> - * number =: [0-9]+<br/> - * Word =: [A-z]+<br/> - * + * The grammar is described in Readme.md */ /** |