1. RE: Parsing a Die Roll String
- Posted by <Christian.CUVIER at agriculture.gouv.fr> Aug 10, 2004
- 364 views
cklester wrote: > > > posted by: cklester <cklester at yahoo.com> > > Christian Cuvier wrote: > > > > Do you need an optional journal for complex calculations? > > For instance: > > 8d6-2*3H2 -> > > 8d6 -> {1,1,2,3,3,4,4,6} -> 24 > > 3H2 -> {3,4,4} -> 11 > > 8d6-2*3H2 -> 24-2*11=2 > > Don't need it, but it would be a nice option! :) That's kinda what > the results list is for, whether it's the verbose formula breakdown > or just the final result. > > -=ck > "Programming in a state of EUPHORIA." > http://www.cklester.com/euphoria/ Which behaviour do you wish in case a badly formed string is fed to the parer? I now have an include file left to debug, which will support about any fancy die roll you may think of. Can't test it in IDE right now because of the changes between win32lib 0.60.0 and 0.60.1. I'll include it manually and happen what may. Hopefully I can upload a working include file on Thursday night. CChris
2. RE: Parsing a Die Roll String
- Posted by cklester <cklester at yahoo.com> Aug 11, 2004
- 399 views
<Christian.CUVIER at agriculture.gouv.fr> wrote: > > Which behaviour do you wish in case a badly formed string is fed to the > parser? How about just an empty sequence? -or- maybe better, the constant BAD_DICE_FORUMLA which can equal -485739485739. :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/