Parser Rewrite #12

Merged
projectmoon merged 1 commits from cofd-parser-rewrite into master 2020-10-11 21:22:13 +00:00
Owner

Rewrite of the CofD dice pool parser and core command parsing to use combine instead of nom. The dice pool parser has been rewritten in preparation for use of variables and more complicated expressions to allow bonuses/penalties. The command parser was rewritten to use combine simply because I find it less confusing than nom. The only thing that uses nom is the original dice rolling code. The legacy code boundary is contained in the parse_roll function in src/commands/parser.rs.

Rewrite of the CofD dice pool parser and core command parsing to use `combine` instead of `nom`. The dice pool parser has been rewritten in preparation for use of variables and more complicated expressions to allow bonuses/penalties. The command parser was rewritten to use `combine` simply because I find it less confusing than `nom`. The only thing that uses `nom` is the original dice rolling code. The legacy code boundary is contained in the `parse_roll` function in `src/commands/parser.rs`.
Sign in to join this conversation.
No description provided.