class Days::Day08
- Days::Day08
- Challenge
- Reference
- Object
Defined in:
days/day_08.crConstant Summary
-
COND_MATCHER =
/if (?<cond_left>\w+) (?<cond_op>.{1,2}) (?<cond_right>-?\d+)/
-
MATCHER =
/^(?<dest>\w+) (?<op>inc|dec) (?<offset>-?\d+) #{COND_MATCHER}$/
Constructors
Instance Method Summary
- #cond(left, op, right)
- #dec(address, offset)
- #execute(dest, op, offset)
- #inc(address, offset)
- #part_one
- #part_two
- #read(address)
- #run_instructions(&)
- #run_instructions