Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into day_10
Browse files Browse the repository at this point in the history
* origin/main:
  Solve Day 18 (#31)
  Solve Day 17 (#30)
  Create Advent.Parser for shared parsers (#29)
  Solve Day 16 (#26)
  Add hspec-discover to PATH (#28)
  • Loading branch information
manuphatak committed Dec 26, 2020
2 parents 8820fe0 + 0446cd9 commit a93ea99
Show file tree
Hide file tree
Showing 59 changed files with 2,575 additions and 41 deletions.
1 change: 1 addition & 0 deletions .envrc.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
PATH_add bin
PATH_add bin/stack

export SESSION_ID=0000000000
export GITHUB_USER=manuphatak
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BinaryOp
( Number 1
, Plus
, Number 2
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BinaryOp
( Number 1
, Plus
, Number 2
)
21 changes: 21 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_1/actual
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
BinaryOp
( BinaryOp
( BinaryOp
( Number 1
, Plus
, Number 2
)
, Times
, BinaryOp
( Number 3
, Plus
, Number 4
)
)
, Times
, BinaryOp
( Number 5
, Plus
, Number 6
)
)
21 changes: 21 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_1/golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
BinaryOp
( BinaryOp
( BinaryOp
( Number 1
, Plus
, Number 2
)
, Times
, BinaryOp
( Number 3
, Plus
, Number 4
)
)
, Times
, BinaryOp
( Number 5
, Plus
, Number 6
)
)
21 changes: 21 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_2/actual
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
BinaryOp
( BinaryOp
( Number 1
, Plus
, BinaryOp
( Number 2
, Times
, Number 3
)
)
, Plus
, BinaryOp
( Number 4
, Times
, BinaryOp
( Number 5
, Plus
, Number 6
)
)
)
21 changes: 21 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_2/golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
BinaryOp
( BinaryOp
( Number 1
, Plus
, BinaryOp
( Number 2
, Times
, Number 3
)
)
, Plus
, BinaryOp
( Number 4
, Times
, BinaryOp
( Number 5
, Plus
, Number 6
)
)
)
13 changes: 13 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_3/actual
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
BinaryOp
( Number 2
, Times
, BinaryOp
( Number 3
, Plus
, BinaryOp
( Number 4
, Times
, Number 5
)
)
)
13 changes: 13 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_3/golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
BinaryOp
( Number 2
, Times
, BinaryOp
( Number 3
, Plus
, BinaryOp
( Number 4
, Times
, Number 5
)
)
)
25 changes: 25 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_4/actual
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
BinaryOp
( Number 5
, Plus
, BinaryOp
( BinaryOp
( BinaryOp
( Number 8
, Times
, BinaryOp
( BinaryOp
( Number 3
, Plus
, Number 9
)
, Plus
, Number 3
)
)
, Times
, Number 4
)
, Times
, Number 3
)
)
25 changes: 25 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_4/golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
BinaryOp
( Number 5
, Plus
, BinaryOp
( BinaryOp
( BinaryOp
( Number 8
, Times
, BinaryOp
( BinaryOp
( Number 3
, Plus
, Number 9
)
, Plus
, Number 3
)
)
, Times
, Number 4
)
, Times
, Number 3
)
)
37 changes: 37 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_5/actual
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
BinaryOp
( BinaryOp
( Number 5
, Times
, Number 9
)
, Times
, BinaryOp
( BinaryOp
( BinaryOp
( Number 7
, Times
, Number 3
)
, Times
, BinaryOp
( Number 3
, Plus
, Number 9
)
)
, Times
, BinaryOp
( Number 3
, Plus
, BinaryOp
( BinaryOp
( Number 8
, Plus
, Number 6
)
, Times
, Number 4
)
)
)
)
37 changes: 37 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_5/golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
BinaryOp
( BinaryOp
( Number 5
, Times
, Number 9
)
, Times
, BinaryOp
( BinaryOp
( BinaryOp
( Number 7
, Times
, Number 3
)
, Times
, BinaryOp
( Number 3
, Plus
, Number 9
)
)
, Times
, BinaryOp
( Number 3
, Plus
, BinaryOp
( BinaryOp
( Number 8
, Plus
, Number 6
)
, Times
, Number 4
)
)
)
)
41 changes: 41 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_6/actual
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
BinaryOp
( BinaryOp
( BinaryOp
( BinaryOp
( BinaryOp
( BinaryOp
( Number 2
, Plus
, Number 4
)
, Times
, Number 9
)
, Times
, BinaryOp
( BinaryOp
( BinaryOp
( Number 6
, Plus
, Number 9
)
, Times
, BinaryOp
( Number 8
, Plus
, Number 6
)
)
, Plus
, Number 6
)
)
, Plus
, Number 2
)
, Plus
, Number 4
)
, Times
, Number 2
)
41 changes: 41 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_advanced_6/golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
BinaryOp
( BinaryOp
( BinaryOp
( BinaryOp
( BinaryOp
( BinaryOp
( Number 2
, Plus
, Number 4
)
, Times
, Number 9
)
, Times
, BinaryOp
( BinaryOp
( BinaryOp
( Number 6
, Plus
, Number 9
)
, Times
, BinaryOp
( Number 8
, Plus
, Number 6
)
)
, Plus
, Number 6
)
)
, Plus
, Number 2
)
, Plus
, Number 4
)
, Times
, Number 2
)
5 changes: 5 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_basic_0/actual
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BinaryOp
( Number 1
, Plus
, Number 2
)
5 changes: 5 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_basic_0/golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BinaryOp
( Number 1
, Plus
, Number 2
)
21 changes: 21 additions & 0 deletions .golden/Day18.Solution.parseExpression_example_basic_1/actual
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
BinaryOp
( BinaryOp
( BinaryOp
( BinaryOp
( BinaryOp
( Number 1
, Plus
, Number 2
)
, Times
, Number 3
)
, Plus
, Number 4
)
, Times
, Number 5
)
, Plus
, Number 6
)
Loading

0 comments on commit a93ea99

Please sign in to comment.