Source: Stream Processing
Part 1: An input stream can contain:
groupsare delimited by
groupsare nestable and may contain
garbageor data (objects within a
groupare comma delimited)
garbageis delimited by
groupscannot be nested within
garbageis an escape character:
!>does not end a garbage segment
The score of a single group is equal to how many times it is nested (the innermost group of
The score of a stream is the sum of the scores of all groups in that stream.
What is the total score of your input?