diff options
| author | 2016-04-30 23:47:09 +0200 | |
|---|---|---|
| committer | 2016-04-30 23:47:09 +0200 | |
| commit | f34506d0795069a1be216c2c1a5c11c0b369efa6 (patch) | |
| tree | e1f2911263f937a02645fa31fb23f69d3125135c /diceparser.h | |
| parent | 2ec2003f7a0a4dc127d39fd9cc22d9edad1a21df (diff) | |
| download | OneRoll-f34506d0795069a1be216c2c1a5c11c0b369efa6.tar.gz OneRoll-f34506d0795069a1be216c2c1a5c11c0b369efa6.zip | |
Add doxy page.
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 b532b3e..96fc0a2 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/> * */ |