Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
aoc-2020
master
Aoc
Day
Day1
Day10
Day11
SeatMap
Seat
Day12
Direction
Day13
Day14
Day15
Day16
Field
Day17
CubeField
Day18
ComplexExpression
Expression
Operation
Scalar
Day19
CompoundRule
Rule
StringRule
Day2
Constraint
Day20
Collage
Image
Orientation
Day21
Day22
Day23
Day24
Day25
Day3
Day4
Passport
Day5
BoardingPass
Day6
Day7
Day8
Operation
Day9
Built with Crystal 1.9.2
2023-10-07 20:43:19 UTC
class
Aoc::Day19::CompoundRule
Aoc::Day19::CompoundRule
Aoc::Day19::Rule
Reference
Object
Defined in:
day/19.cr
Constructors
.new
(sub_rule_sets : Array(Array(Int32)))
Instance Method Summary
#find_match
(line, rules) : String | Nil
#find_sub_match
(sub_rule_ids, line, rules)
Instance methods inherited from class
Aoc::Day19::Rule
find_match(line : String, rules : Hash(Int32, Rule)) : String | Nil
find_match
Class methods inherited from class
Aoc::Day19::Rule
parse(line)
parse
Constructor Detail
def self.
new
(sub_rule_sets : Array(Array(Int32)))
#
[
View source
]
Instance Method Detail
def
find_match
(line, rules) : String | Nil
#
[
View source
]
def
find_sub_match
(sub_rule_ids, line, rules)
#
[
View source
]