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::Day18::ComplexExpression
Aoc::Day18::ComplexExpression
Aoc::Day18::Expression
Reference
Object
Defined in:
day/18.cr
Constructors
.new
(expressions : Array(Expression), operations : Array(Operation))
Instance Method Summary
#eval_complex
: BigInt
#eval_simple
: BigInt
Instance methods inherited from class
Aoc::Day18::Expression
eval_complex : BigInt
eval_complex
,
eval_simple : BigInt
eval_simple
Class methods inherited from class
Aoc::Day18::Expression
parse(line)
parse
Constructor Detail
def self.
new
(expressions : Array(
Expression
), operations : Array(
Operation
))
#
[
View source
]
Instance Method Detail
def
eval_complex
: BigInt
#
[
View source
]
def
eval_simple
: BigInt
#
[
View source
]