tenebrous-dicebot/dicebot/src/basic
projectmoon ee3ec18e06 Refactor keep-drop parsing into function, better error handling. (#93)
This commit refactors the keep-drop parsing into two separate
functions: one for extracting keep-drop text, and one for actually
doing something with the extracted values. An intermediate enum is
introduced to contain extracted text, instead of relying on Ok/Err
values directly for figuring out what to do with the values.

This allows us to express "this behavior is correct, and all others
are not" instead of using a "fall back to secondary functionality"
approach.

Reviewed-on: projectmoon/tenebrous-dicebot#93
Co-Authored-By: projectmoon <projectmoon@noreply.git.agnos.is>
Co-Committed-By: projectmoon <projectmoon@noreply.git.agnos.is>
2021-09-30 21:16:00 +00:00
..
dice.rs Refactor keep-drop parsing into function, better error handling. (#93) 2021-09-30 21:16:00 +00:00
mod.rs Convert project to workspace with Tonic for gRPC. (#84) 2021-06-02 21:09:58 +00:00
parser.rs Refactor keep-drop parsing into function, better error handling. (#93) 2021-09-30 21:16:00 +00:00
roll.rs Adding None enum to keep/drop, cleaning up matches 2021-09-24 23:03:20 -04:00