Dice notation (eg. 2d6) parser and its stack-based interpreter