diff options
| author | 2016-05-05 16:15:42 +0200 | |
|---|---|---|
| committer | 2016-05-05 16:15:42 +0200 | |
| commit | 64c35992db5352833ccd6cb623dbb9e9362834dc (patch) | |
| tree | 3c138e6727b059785d9beb8957c051952b1f0830 /diceparser.h | |
| parent | 30bdb9a0e446350846fc0cac82b8a22c4bdd983f (diff) | |
| parent | f34506d0795069a1be216c2c1a5c11c0b369efa6 (diff) | |
| download | OneRoll-64c35992db5352833ccd6cb623dbb9e9362834dc.tar.gz OneRoll-64c35992db5352833ccd6cb623dbb9e9362834dc.zip | |
Merge branch 'master' of github.com:Rolisteam/DiceParser
Diffstat (limited to 'diceparser.h')
| -rw-r--r-- | diceparser.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/diceparser.h b/diceparser.h index 59fe04f..6baef6a 100644 --- a/diceparser.h +++ b/diceparser.h @@ -40,20 +40,26 @@ typedef QMap<int,ListDiceResult > ExportedDiceResult; class ExploseDiceNode; /** - * @page DiceParser + * @page DiceParser Dice Parser + * + * @section Intro Introduction + * Diceparser is the software component dedicated to compute dice command in rolisteam.<br/> + * + * @section grammar The Grammar * * The grammar is something like this: * - * Line =: Command | Command;Command - * Command =: Expression | ScalarOperator Expression | ScalarOperator NodeAction Expression - * Expression =: number | number Dice | Command - * Dice =: DiceOperator Number(faces) | DiceOperator List - * List =: [Word,Number,',']+ - * NodeAction =: @ - * DiceOperator =: [D,L] - * ScalarOperator =: [x,-,*,x,/] - * number =: [0-9]+ - * Word =: [A-z]+ + * 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/> * */ |