A dice expression parser in C.