()
| 40 | } |
| 41 | |
| 42 | func (s *mathTreeStack) peek() *MathTree { |
| 43 | x.AssertTruef(!s.empty(), "Trying to peek empty stack") |
| 44 | return s.a[len(s.a)-1] |
| 45 | } |
| 46 | |
| 47 | // MathTree represents math operations in tree form for evaluation. |
| 48 | type MathTree struct { |
no test coverage detected