A basic if
else
parser.
It automatically captures the if equation and the result.
It supports if
, elif
, and else
statements.
Note: for elif
statements part 2 is required. This is because Regex can't use one group to capture multiple elif
statements.
Part 2 can be found here