Use tiny expression library (from Github) and expand it to provide dice expression parsing. This needs more testing obviously.