From f34506d0795069a1be216c2c1a5c11c0b369efa6 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 30 Apr 2016 23:47:09 +0200 Subject: Add doxy page. --- diceparser.h | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'diceparser.h') diff --git a/diceparser.h b/diceparser.h index b532b3e..96fc0a2 100644 --- a/diceparser.h +++ b/diceparser.h @@ -40,20 +40,26 @@ typedef QMap ExportedDiceResult; class ExploseDiceNode; /** - * @page DiceParser + * @page DiceParser Dice Parser + * + * @section Intro Introduction + * Diceparser is the software component dedicated to compute dice command in rolisteam.
+ * + * @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
+ * Command =: Expression | ScalarOperator Expression | ScalarOperator NodeAction Expression
+ * Expression =: number | number Dice | Command
+ * Dice =: DiceOperator Number(faces) | DiceOperator List
+ * List =: [Word[range|percentage],Number[range|percentage],',']+
+ * Persentage =: Number
+ * NodeAction =: @
+ * DiceOperator =: [D,L]
+ * ScalarOperator =: [x,-,*,x,/]
+ * number =: [0-9]+
+ * Word =: [A-z]+
* */ -- cgit v1.2.3-70-g09d2